timeserieschart

JFreeChart - How to show real-time on the X-Axis of a TimeSeries chart

北城以北 提交于 2019-11-27 15:23:22
I want to show live data on a TimeSeries chart with real time shown on the x-axis (or at least have the speed of the time the same as real-time). Here is a SSCCE of the problem with random numbers as the live input. The time shown on the x-axis is much faster than real-time (assuming it is shown in hh:mm:ss format): public class DynamicTimeSeriesChart extends JPanel { private DynamicTimeSeriesCollection dataset; private JFreeChart chart = null; public DynamicTimeSeriesChart(final String title) { dataset = new DynamicTimeSeriesCollection(1, 2000, new Second()); dataset.setTimeBase(new Second(0,

In Bokeh, how do I add tooltips to a Timeseries chart (hover tool)?

妖精的绣舞 提交于 2019-11-27 12:02:36
问题 Is it possible to add Tooltips to a Timeseries chart? In the simplified code example below, I want to see a single column name ('a','b' or 'c') when the mouse hovers over the relevant line. Instead, a "???" is displayed and ALL three lines get a tool tip (rather than just the one im hovering over) Per the documentation ( http://docs.bokeh.org/en/latest/docs/user_guide/tools.html#hovertool), field names starting with “@” are interpreted as columns on the data source. How can I display the

JFreeChart - How to show real-time on the X-Axis of a TimeSeries chart

ぐ巨炮叔叔 提交于 2019-11-26 22:25:10
问题 I want to show live data on a TimeSeries chart with real time shown on the x-axis (or at least have the speed of the time the same as real-time). Here is a SSCCE of the problem with random numbers as the live input. The time shown on the x-axis is much faster than real-time (assuming it is shown in hh:mm:ss format): public class DynamicTimeSeriesChart extends JPanel { private DynamicTimeSeriesCollection dataset; private JFreeChart chart = null; public DynamicTimeSeriesChart(final String title