我想在flot柱状图上显示条形内的数值,类似于这样:
|
| +----+
| | |
| | |
| | |
| +----+ | 20 |
| | | | |
| | 10 | | |
| | | | |
|---+----+------+----+------
有没有一种方法可以做到这一点?
数据 = [[1, 10],[2, 20]]
Uncaught TypeError: Cannot read property 'toString' of null at formatter (jquery.flot.barnumbers.js:60) at Object.<anonymous> (jquery.flot.barnumbers.js:121) at Function.each (jquery-1.11.3.js:384) at draw (jquery.flot.barnumbers.js:57) at executeHooks (jquery.flot.js:717) at draw (jquery.flot.js:1886) at new Plot (jquery.flot.js:710) at Function.$.plot (jquery.flot.js:3146) at plot_graph (graphs.php:975) at Object.success (graphs.php:683)
。 - shorif2000