I'd like to generate a pie graph with GD Template. I typed:
<tr><td>
[% USE graph = GD.Graph.pie(500, 300);
USE gdc = GD.Constants;
graph.set(title = "My first graph"
transparent = 0
t_margin = 0
b_margin = 0
r_margin = 0
l_margin = 0
start_angle = -90);
%]
</td></tr>
but "GD::Graph::pie" is empty and I need datafile.
I have some questions:
1) In which format I need write datafile;
2) What I put in datafile;
3) How does I calcolate percentage for item in datafile.
Regards,
Savio
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates