Pie chart II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
board.suspendUpdate();
board.suspendUpdate();


var s = board.createElement('slider', [[8,7],[11,7],[1,1,1.5]],{name:'S',strokeColor:'black',fillColor:'white'});
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.createElement('chart', [1,2,3,4,5],
var a = board.create('chart', [1,2,3,4,5],
{chartStyle:'pie',
{chartStyle:'pie',
colorArray:
colorArray:

Revision as of 10:57, 17 March 2020