Javascript examples for highcharts:Chart Color
Pie chart with partially colored slices
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () {/*from www .j a v a 2s . co m*/ $('#container').highcharts({ chart: { polar: true }, title: { text: 'Highcharts polar chart with colored wedges' }, legend: { enabled: false }, xAxis: { type: 'category', categories: ['series A','series B','series C','series D','series E'], }, yAxis: { min: 0, max: 100, labels: { enabled: false } }, plotOptions: { pointPlacement: 'on', series: { dataLabels: { enabled: true, inside: true, verticalAlign: 'middle' }, pointPadding: 0, groupPadding: 0, stacking: 'normal' } }, series: [{ type: 'column', name: 'background fill for the wedges', data: [18,30,45,47,5], color: '#BCBCBC', enableMouseTracking: false, dataLabels: { enabled: false } }, { type: 'column', name: 'wedge value', data: [ { y: 82, color: 'blue' }, { y: 70, color: 'purple' }, { y: 55, color: 'orange' }, { y: 53, color: 'yellow' }, { y: 95, color: 'green' } ] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="min-width: 310px; max-width: 400px; height: 400px; margin: 0 auto"></div> </body> </html>