Flot中的轴标签 [英] Axis label in Flot

查看:124
本文介绍了Flot中的轴标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Flot中设置轴的标签或标题吗?

Does anyone know how one can set the label or title of an axis in Flot?

我已经阅读了API,但它似乎没有功能......

I've read the API but it doesn't seem to have that feature...

谢谢:)

推荐答案

没有内置到flot。

你最好的选择是通过定位的div自己做,但如果你喜欢冒险,你可以看看问题(或原始问题)并了解其他人如何处理它。

Your best bet is to do it yourself via positioned divs, but if you are adventurous, you can look at the issue (Or the original issue) and see how other people have dealt with it.

具体来说,有两个人谁最近对flot进行了与标签相关的修订:

Specifically, there are two people who have recently made label-related revisions to flot:

https://github.com/RuiPereira/flot/raw/axislabels/jquery.flot.axislabels.js

http://github.com/xuanluo/flot-axislabels

这篇关于Flot中的轴标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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