How to deal with 2 TimeSerieses with the exact values?

纵然是瞬间 提交于 2019-12-14 02:53:37

问题


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

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 !

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 ?

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.

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

Thank you.


回答1:


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



来源:https://stackoverflow.com/questions/15306471/how-to-deal-with-2-timeserieses-with-the-exact-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!