/modules/mod_base/scomps/scomp_base_chart_pie3d.erl

http://github.com/zotonic/zotonic · Erlang · 33 lines · 8 code · 6 blank · 19 comment · 0 complexity · db8f433a7b64ee59d63e797e82342b62 MD5 · raw file

  1. %% @author Marc Worrell <marc@worrell.nl>
  2. %% @copyright 2009 Marc Worrell
  3. %% Date: 2009-04-16
  4. %% @doc Simple interface to the pie3d type of Google chart. Allows for simpler data entry.
  5. %% Parameters: data=[{label,value}, ...] colors=some_color
  6. %% and then all parameters
  7. %% Copyright 2009 Marc Worrell
  8. %%
  9. %% Licensed under the Apache License, Version 2.0 (the "License");
  10. %% you may not use this file except in compliance with the License.
  11. %% You may obtain a copy of the License at
  12. %%
  13. %% http://www.apache.org/licenses/LICENSE-2.0
  14. %%
  15. %% Unless required by applicable law or agreed to in writing, software
  16. %% distributed under the License is distributed on an "AS IS" BASIS,
  17. %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. %% See the License for the specific language governing permissions and
  19. %% limitations under the License.
  20. -module(scomp_base_chart_pie3d).
  21. -author("Marc Worrell <marc@worrell.nl").
  22. -behaviour(gen_scomp).
  23. -export([vary/2, render/3]).
  24. -include("zotonic.hrl").
  25. vary(_Params, _Context) -> default.
  26. render(Params, Vars, Context) ->
  27. scomp_base_chart_pie:render([{threed,true}|Params], Vars, Context).