JQplot折线图查询 - 总线时间表 [英] JQplot Line Chart queries - Bus Time Table

查看:114
本文介绍了JQplot折线图查询 - 总线时间表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JQplot的总线时间表折线图开发斜率图表(参阅附件jqplot line chart.jpg)。

在X轴显示时间与时间Y轴显示停止。



此线图显示从源(Stop-1)到目的地(Stop-2)的公交车。



我要自定义现有折线图以满足我的要求。请在下面找到它们。

1.根据我的要求,每辆公共汽车/车辆必须从车厂开始到第一站服务,并在完成服务后通过表示它返回车站用虚线表示。请找到截图。

2.如何指定出现在行首的总线名称。



3.总线(线)以不同的颜色线显示,总线名称显示为具有相应颜色的图例。如果从图例中选择总线,我想要一个仅突出显示或仅显示相应总线的功能。

我的查询的任何解决方案都非常受欢迎。

I am in the process of developing a Slope Chart using JQplot’s Bus Time Table Line Chart (see attached jqplot line chart.jpg).
In X-axis showing the Time & Y-axis showing the Stops.

This line-graph show a Bus going from the source (Stop-1) to the destination (Stop-2).

I’ve to customize the existing line chart to meet my requirements. Please find them below.
1. According to my requirement, each bus/vehicle has to start from the Depot to the first stop of service, and goes back to the Depot after finishing its service by denoting it by dotted lines. Please find the screenshot.
2. How do I specify the bus name that appears in the starting of the line.

3. The Buses (lines) are shown in different color lines, and the bus names are shown as legends with the respective colors. I would like to have a functionality that will just highlight or show only the respective bus lines if the bus is selected from the legend.
Any solutions to my queries are highly appreciated.

推荐答案

你确实试图很好地构建你的问题。好。但是,我没有看到任何截图,也没有链接到它们。因此,非常非常难以理解你的文字。



但是,我假设你在谈论这个 JQPlot [ ^ ]?



在这种情况下,我碰巧知道一小撮JQPlot。我从未做过你想要达到的目标,但这就是你能做到的:

- 你可以通过悬停突出显示一个系列或点,对吗?这是通过向剧情发送一个onhover事件来完成的。

- 你需要捕捉你的网格的onhover并将其泵入JQPlot。 JQPlot中有一些事件可以通过javascript(例如双击)触发并相应处理。因此,我认为你可以调查三个选项:

1.尝试通过发送事件来确定是否可以控制突出显示代码(不太可能,但这是最佳解决方案)

2.尽量让JQPlot认为你在这个特定的系列中徘徊。 (不理想,但它应该工作)

3.修改JQPlot代码以允许您突出显示该系列。 (不推荐。尝试触摸尽可能少的代码。)



我会从一个纯HTML的测试页面开始,该测试页面有一个2系列的情节,并尝试硬编码亮点。 (首先使用标准的onhover功能然后尝试使用例如点击按钮来绕过onhover)



这不是一个简单的功能你正在尝试在这里,我怀疑你会得到一个准备好的答案。花一些时间来弄清楚并做一些测试。



祝你好运。
You did try to structure your question very well. good. However, I don''t see any of the screenshots nor a link to them. It is therefore very, very difficult to follow your text in making some sense.

However, I assume your talking about this JQPlot[^] ?

In that case I happen to know a tid or tad of JQPlot. I have never done what you''re trying to achieve, but this is what you can do:
- You can highlight a serie or point via hovering, right? this is done by sending an "onhover" event to the plot.
- You need to catch the "onhover" of your grid and pump it through to the JQPlot. There are some events in JQPlot that you can fire through javascript (eg doubleclick) and handle accordingly. There are therefore three options I believe you can investigate:
1. Try to find out if you can control the "highlight" code, by sending an event (not likely, but it is the best solution)
2. Try to let the JQPlot think you''re hovering over that specific series. (not ideal, but it should work)
3. Modify the JQPlot code to allow you to highlight the series. (Not recommended. Try to touch as little code as possible.)

I would start out with a pure HTML testpage that has one plot with 2 series and try to hardcode the highlight. (first by using the standard onhover feature and then trying to go around the onhover by using eg a button click)

It is not an easy feature you''re trying to do here, I doubt you''ll get a ready answer. Take some time to figure this out and do some tests.

best of luck.


这篇关于JQplot折线图查询 - 总线时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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