简体   繁体   English

在flot条形图上显示栏内的值

[英]Show value within bar on flot bar chart

I would like to show the value within the bar on the flot bar chart, something like this: 我想在flot条形图上显示栏内的值,如下所示:

|
|               +----+
|               |    |
|               |    |
|               |    |
|   +----+      | 20 |
|   |    |      |    |
|   | 10 |      |    |
|   |    |      |    |
|---+----+------+----+------

data = [[1, 10], [2, 20]] data = [[1,10],[2,20]]

Is there a way to do this? 有没有办法做到这一点?

我需要同样的东西,所以我很快就把它插入了一个插件 ,并在其中快速举例说明了它。

The plugin flot.barlabels can be used: 可以使用插件flot.barlabels

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM