在条形图条上显示条内的值 [英] Show value within bar on flot bar chart
本文介绍了在条形图条上显示条内的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 flot 条形图中显示栏内的值,像这样:
|
| + ---- +
| | |
| | |
| | |
| + ---- + | 20 |
| | | | |
| | 10 | | |
| | | | |
| --- + ---- + ------ + ---- + ------
data = [[1,10],[2,20]]
有没有办法做到这一点?
解决方案
我需要同样的东西,所以我很快就把一个为它插件和快速示例它的行动。
I would like to show the value within the bar on the flot bar chart, something like this:
|
| +----+
| | |
| | |
| | |
| +----+ | 20 |
| | | | |
| | 10 | | |
| | | | |
|---+----+------+----+------
data = [[1, 10], [2, 20]]
Is there a way to do this?
解决方案
I needed the same thing, so I quickly hacked together a plugin for it and a quick example of it in action.
这篇关于在条形图条上显示条内的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文