highchart的用法积累
highcharts 柱子换颜色 var colors = Highcharts.getOptions().colors; $(arr_Y_bfb).each(function (index, ele) { var temp = new Object(); temp.y = ele; temp.color = colors[index]; data_last.push(temp); });
导出图片,pdf等的链接
exporting: {
enabled: false
//导出图片,pdf等的链接
}
enabled: false
//导出图片,pdf等的链接
}
//去除链接,highcharts.com的logo
credits: {
enabled: false
//去除链接,highcharts.com的logo
}
credits: {
enabled: false
//去除链接,highcharts.com的logo
}
y轴直接显示值,不用鼠标移上去
plotOptions: {
series: {
dataLabels: {
enabled: true,//是否显示数据值
}
}
}
series: {
dataLabels: {
enabled: true,//是否显示数据值
}
}
}