Turning the second timeseries in a TimeseriesChart to a barchart

[亡魂溺海] 提交于 2019-12-13 01:21:27

问题


As the heading implies, I have a timeseries chart that displays two curves, each a TimeSeries, both part of the same TimeSeriesCollection. What I want to do is display the second TimeSeries as a barchart, but I want both TimeSeries still in the same chart. Is this possible?


回答1:


Yes this is possible, look at the OverlaidXYPlotDemo1 and OverlaidXYPlotDemo2 charts in the sample demo application that you can run from the JFree site. If you purchase the documentation they will send you the actual code for all the samples.



来源:https://stackoverflow.com/questions/6076133/turning-the-second-timeseries-in-a-timeserieschart-to-a-barchart

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