Another quite basic Pie chart which is predominantly a pinkish theme. All of the colors
are defined using rgb()
values instead of hex values or named colors.
The linewidth
is set to 2 so the resultant effect is a small amount of segment
separation.
The labels are defined and the textSize
option is enlarged slightly so
that those labels are a little bit clearer.
It's quite a basic example of a Pie chart but the resulting aesthetic is quite nice. This goes to show that your charts don't need to be fancy to look good!
<script src="RGraph.common.core.js"></script> <script src="RGraph.pie.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="550" height="450"> [No canvas support] </canvas>This is the code that generates the chart: