Search found 2 matches

by CaymanBeach
Thu Aug 26, 2021 2:18 am
Forum: JFreeChart
Topic: Different color for each bar
Replies: 3
Views: 205276

Re: Different color for each bar

After implementing this trick (separate series for positive and negative values), I discovered a much simpler way with more recent (1.15.x) versions of JFreeChart: XYBarRenderer obvRenderer = new XYBarRenderer() { @Override public Paint getItemPaint(int series, int item) { if ( ((XYDataset)getPlot()...
by CaymanBeach
Fri Jul 24, 2020 7:06 pm
Forum: JFreeChart
Topic: Chart stops scrolling after panning
Replies: 0
Views: 5988

Chart stops scrolling after panning

I have a time series chart that uses a custom (FiveMinute) RegularTimePeriod. It updates / scrolls as expected after it starts, and as Y values change, the Range axis also scales as expected. However, after I enabled panning, if the chart is panned (through time periods, and/or values), scrolling no...