【问题标题】:Many of axis labels许多轴标签
【发布时间】:2013-08-08 12:56:05
【问题描述】:

有人可以帮助我http://www.jqplot.com/tests/axisLabelTests.php

我需要在图片上插入三个轴,但我不知道怎么做。

【问题讨论】:

标签: axis jqplot labels


【解决方案1】:

您可以在以下链接 [jqPlot 文档] 中找到您想要的示例:

- First example

- Second example

And finally, Axis documentation here

编辑根据您在原始帖子中附加的评论,您可以做一些事情like this (jsFiddle link)

//Declare a first series
var cosPoints = [...];
//Declare a second one
var cosPoints2 = [...];
//Draw a new plot with those two series
$.jqplot('chart1', [cosPoints,cosPoints2], {});
//You will obtain a graph with two lines representing your two series.

PS我认为你肯定需要看看 jqPlot 示例 herehere

【讨论】:

  • 请在上面查看我的更新答案并参考this jsFiddle link
  • 谢谢,但为什么不一样?
  • 因为变量的定义不一样(cosPoints的cos(i)和cosPoints2的cos(i-1))
  • 好的,那么告诉我如何做相同的线条颜色。这确实是我的问题。
  • 请参阅updated jsFiddle here 但请认真阅读 jqPlot 文档和示例(几乎所有内容都已清楚解释 - 至少到目前为止您所需要的......)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-04-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-10-06
相关资源
最近更新 更多