Search found 2 matches
- Thu Aug 26, 2021 2:18 am
- Forum: JFreeChart
- Topic: Different color for each bar
- Replies: 3
- Views: 342995
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()...
- Fri Jul 24, 2020 7:06 pm
- Forum: JFreeChart
- Topic: Chart stops scrolling after panning
- Replies: 0
- Views: 10117
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...