Pie chart II: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
board.suspendUpdate(); | board.suspendUpdate(); | ||
var s = board. | var s = board.create('slider', [[8,7],[11,7],[1,1,1.5]],{name:'S',strokeColor:'black',fillColor:'white'}); | ||
var f = [function(){return (s.Value()*2).toFixed(2);}, | var f = [function(){return (s.Value()*2).toFixed(2);}, | ||
function(){return (s.Value()*2).toFixed(2);}, | function(){return (s.Value()*2).toFixed(2);}, | ||
Line 17: | Line 17: | ||
]; | ]; | ||
var a = board. | var a = board.create('chart', [1,2,3,4,5], | ||
{chartStyle:'pie', | {chartStyle:'pie', | ||
colorArray: | colorArray: |