Pie chart: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 13: Line 13:
         labelArray:['Ruby','JavaScript', 'Shell','Python', 'PHP', 'C','Perl', 'C++', 'Java', 'Flash'],
         labelArray:['Ruby','JavaScript', 'Shell','Python', 'PHP', 'C','Perl', 'C++', 'Java', 'Flash'],
         highlightColorArray:['#E46F6A','#F9DF82','#F7FA7B','#B0D990','#69BF8E','#BDDDE4','#92C2DF','#637CB0','#AB91BC','#EB8EBF'],
         highlightColorArray:['#E46F6A','#F9DF82','#F7FA7B','#B0D990','#69BF8E','#BDDDE4','#92C2DF','#637CB0','#AB91BC','#EB8EBF'],
         highlightOnSector:true,
         highlightOnSector:true,
        highlightBySize:true,
         gradient:'linear'}
         gradient:'linear'}
     );
     );
 
/*
     for(var i=0; i< a[0].arcs.length; i++) {
     for(var i=0; i< a[0].arcs.length; i++) {
         a[0].arcs[i].highlight = function() {
         a[0].arcs[i].highlight = function() {
Line 52: Line 53:
         };  
         };  
     }
     }
*/
     board.unsuspendUpdate();
     board.unsuspendUpdate();
</jsxgraph>
</jsxgraph>

Revision as of 09:22, 3 August 2010

A pie chart with highlight on the whole sector, enlarging labels on highlight and a gradient fill.

JavaScript code to produce this chart

Soon ...