HighChart 不同颜色(柱状图)


var chart = new Highcharts.Chart({
            chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                backgroundColor: "transparent",
                plotShadow: false,
                renderTo: 'CMForNetWidthInCmts'
            },
            colors:["#434348", "#3398db", "#90ed7d", "#f7a35c", "#61a0a8", "#61a0a8", "#91c7ae", "#2f4554"], 
title: { // text: PORTAL.Translate.cmts_table_AllNetCMTypeCount text: "" },
tooltip: { pointFormat:
'{series.name}: <b>{point.y}</b>' },
plotOptions: { pie: { allowPointSelect:
true, cursor: 'pointer', dataLabels: { enabled: true, color: '#000000', connectorColor: '#000000', format: '<b>{point.name}</b>: {point.y} ( {point.percentage:.1f} % )' } } },
series: [{ type:
'pie', name: PORTAL.Translate.Report_pon_Quantity, data: [], }] });

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM