如何处理具有确切值的2个TimeSeries? [英] How to deal with 2 TimeSerieses with the exact values?

查看:45
本文介绍了如何处理具有确切值的2个TimeSeries?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个包含2个TimeSeriesTimeSeries图表(即,一个Dataset包含2个TimeSeries对象.

I'm creating a TimeSeries chart with 2 TimeSerieses in it (i.e. A Dataset holding 2 TimeSeries objects.

碰巧两个TimeSeries对象都具有相同的确切值,并且它们只是重叠而已,但是客户端看不到,因为他只能看到结果颜色或混合两个TimeSeries对象的颜色!

It happens that both TimeSeries objects holds the same exact values and they are simply overlapping but that's not clear to the client as he only sees the result color or mixing the colors of both TimeSeries objects !

所以他看到图表显示2组数据,而只绘制了一条线!

So he's seeing that the chart is displaying 2 sets of data, while only one line is drawn !

他们是一种内置的方式来处理此问题吗?您将如何解决?

Is their a build-in way to deal with that ? How would you fix that ?

我个人正在考虑将此图表分成2个,以便客户可以清楚地看到,但我想知道是否有一种方法可以更轻松地\更有效地解决这种情况.

Personally I'm thinking of splitting this chart into 2 for it to be clear to the customer but I'm wondering if there is a way with less effort\more efficient to solve this situation.

编辑:最终输出应为图片,因此这不是桌面应用程序(即Swing)

Final output should be images so this isn't a desktop application (i.e. Swing)

谢谢.

推荐答案

一种方法是让用户使用合适的Action来控制系列的可见性,此

One approach is to let the user control series visibility using a suitable Action, a shown in this example.

这篇关于如何处理具有确切值的2个TimeSeries?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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