在浮动条形图上的条形内显示值 [英] Show value within bar on flot bar chart

查看:27
本文介绍了在浮动条形图上的条形内显示值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 flot 条形图的条形图中显示值像这样:

I would like to show the value within the bar on the flot bar chart, something like this:

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

数据 = [[1, 10], [2, 20]]

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆