highchairts柱状图显示数值并且带单位
2016-03-10 10:52
429 查看
$(target).highcharts({ chart: { type: 'bar' }, colors: [ "#1ab394" ], title: { text: title }, legend: { enabled: false }, exporting: { enabled: false }, credits: { enabled: false }, xAxis: { categories: categories }, yAxis: { min: 0, title: { text: label + "(" + unit + ")" } }, tooltip: { shared: true, }, plotOptions: { series: { dataLabels: { enabled: true, //设置柱状图显示数值 formatter: function () { return this.point.y + '%'; // 设置柱状图显示数值并且带单位 }, }, } }, series: [{ name: label, tooltip: { valueSuffix: unit }, data: data }] }); } }
相关文章推荐
- 开发板可以ping通百度IP,但是不能ping百度域名 提示ping: bad address 'www.baidu.com'
- Setting locale failed. Please check that your locale settings
- main()函数参数
- 11gR2/Aix - Dedicated Server Processes Have Large Usla Heap Segment Compared To Older Versions (文档 I
- drop、delete、truncate、alter表时show processlist出现Waiting for table metadata lock状态
- explain的使用
- Signal 13 was raised(SIGPIPE管道破裂)
- linker command failed with exit code 1 (use -v to see invocation),经典Xcode编译错误的出现和解决!
- clang: error: linker command failed with exit code 1 (use -v to see invocation)问题
- HDOJ 1021 Fibonacci Again
- AIDL与Binder与Messenger的使用区别!
- AlphaGo赢了人机大战第一局,阿里来科普一下什么是“人工智能”
- Foxmail7.2导入账户信息
- 在AIX上安装VNC
- mybatis deal with empty result list. 查询结果为empty。
- AIDL简单示例
- falut error failure 的区别与理解
- Climbing Stairs
- 217. Contains Duplicate
- sleep和wait的区别