Go to page content

chart_pie3d

Show a pie chart with 3D effect.

This scomp is just a convenient interface to the {% chart_pie %} scomp with the “threed” argument set to true.

For example:

{% chart_pie3d data=[["firefox",23], ["internet explorer", 67], ["safari",4], ["chrome",3], ["other", 3]] %}

Gives:

<img class='google_chart' alt='google chart' src='http://chart.apis.google.com/chart?&amp;cht=p3&amp;chts=909090,10&amp;chs=300x150&amp;chg=0,0,1,5&amp;chf=bg,s,ffffff|c,s,ffffff&amp;chdlp=b&amp;chbh=-3,3,7&amp;chxt=x&amp;chxl=0:|firefox|internet explorer|safari|chrome|other&amp;chxs=0,909090,10&amp;chco=&amp;chds=0,100&amp;chd=t:23,67,4,3,3&amp;chls=1,1,0' width='300' height='150'/>

View the pie chart.

See also {% chart_pie %} and {% google_chart %}.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.

Comments

  • avatar

    Sanket

    Posted 1 year, 2 months ago.

    The example should read
    {% chart_pie3d ..........

  • avatar

    Marc Worrell

    Posted 1 year, 2 months ago.

    Thanks, I corrected the example.