PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 8%% Copyright 2009 Marc Worrell
 9%%
10%% Licensed under the Apache License, Version 2.0 (the "License");
11%% you may not use this file except in compliance with the License.
12%% You may obtain a copy of the License at
13%% 
14%%     http://www.apache.org/licenses/LICENSE-2.0
15%% 
16%% Unless required by applicable law or agreed to in writing, software
17%% distributed under the License is distributed on an "AS IS" BASIS,
18%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19%% See the License for the specific language governing permissions and
20%% limitations under the License.
21
22-module(scomp_base_chart_pie3d).
23-author("Marc Worrell <marc@worrell.nl").
24-behaviour(gen_scomp).
25
26-export([vary/2, render/3]).
27
28-include("zotonic.hrl").
29
30vary(_Params, _Context) -> default.
31
32render(Params, Vars, Context) ->
33    scomp_base_chart_pie:render([{threed,true}|Params], Vars, Context).