Pie chart: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
<jsxgraph width="800" height="600"> | <jsxgraph width="800" height="600"> | ||
var dataArr = [30,16,14,10,10,8,6,6,4,4]; | var dataArr = [30,16,14,10,10,8,6,6,4,4]; | ||
var board = JXG.JSXGraph.initBoard('jxgbox', {showNavigation:false, showCopyright: | var board = JXG.JSXGraph.initBoard('jxgbox', {showNavigation:false, showCopyright:true, originX: 120, originY: 400, unitX: 50, unitY: 50}); | ||
board.containerObj.style.backgroundColor = 'black'; | board.containerObj.style.backgroundColor = 'black'; | ||
board.suspendUpdate(); | board.suspendUpdate(); | ||
Line 96: | Line 96: | ||
===JavaScript code to produce this chart=== | ===JavaScript code to produce this chart=== | ||
<source lang="xml"> | <source lang="xml"> | ||
Soon ... | |||
</source> | </source> | ||
[[Category:Examples]] | [[Category:Examples]] | ||
[[Category:Charts]] | [[Category:Charts]] |
Revision as of 08:53, 30 September 2009
A pie chart with highlight on the whole sector, enlarging labels on highlight and a gradient fill.
JavaScript code to produce this chart
Soon ...