首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

highcharts:结合图,生成可以点击的横坐标

2012-11-23 
highcharts:组合图,生成可以点击的横坐标1.生成可以点击的横坐标主要的chart代码:plotOptions: {line: {da

highcharts:组合图,生成可以点击的横坐标
1.生成可以点击的横坐标主要的chart代码:

plotOptions: {line: {       dataLabels: {enabled: true},enableMouseTracking: false},column: {pointPadding: 0.2,borderWidth: 0,dataLabels: {enabled: false},enableMouseTracking: true//启用或禁用鼠标跟踪特定系列。这包括点工具提示并单击事件在图表和点。},pie: {     allowPointSelect: true,     cursor: 'pointer',     dataLabels: {enabled: true,color: '#000000',connectorColor: '#000000',formatter: function() {return '<b>'+ this.point.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +' %';}},nableMouseTracking: false }}


然后再series写入自己的数据:
要注明type的类型: 'column','line','pie'等。


热点排行