Graph Time and Point label distorted
-
- Posts: 7
- Joined: Mon Jan 14, 2019 3:17 pm
- antibot: No, of course not.
Graph Time and Point label distorted
Hi,
We faced one weird problem in graphs. when we tried to increase no.of bars in graph more than 100, The Time and value labels are disorted.
We attached the screenshot with is post, which shows some white lines appears in Time and value labels.
Help us to avoid this problem.
Thanks,
4W Technologies.
We faced one weird problem in graphs. when we tried to increase no.of bars in graph more than 100, The Time and value labels are disorted.
We attached the screenshot with is post, which shows some white lines appears in Time and value labels.
Help us to avoid this problem.
Thanks,
4W Technologies.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Graph Time and Point label distorted
I guess the permissions on your dropbox don't allow others to access the image. Can you upload it somewhere else?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- Posts: 7
- Joined: Mon Jan 14, 2019 3:17 pm
- antibot: No, of course not.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Graph Time and Point label distorted
Similar artifact pervades the entire image, which suggests that the chart has been resampled, perhaps repeatedly.
- Verify that you render the image at the largest practical size before downsampling.
- Verify that you don't inadvertently downsample the image and then upsample the image.
- Verify that you don't lose quality with an inappropriate encoder in your processing pipeline.
- Consider using AffineTransformOp to determine the optimal interpolation type for your use case, for example.
- Consider using a StandardXYBarPainter, examined here.
-
- Posts: 7
- Joined: Mon Jan 14, 2019 3:17 pm
- antibot: No, of course not.
Re: Graph Time and Point label distorted
The actual problem is when we tried to increase bar count more than 100 then the time labels are overwriting(refer the image below).
We changed time label color as white except 5. So the overwritten white lines appeared on the visible 5 time labels, It views like distorted text.(refer the image below)
Is there any way to set the Time label count as 5 for 200 bars ?
We changed time label color as white except 5. So the overwritten white lines appeared on the visible 5 time labels, It views like distorted text.(refer the image below)
Is there any way to set the Time label count as 5 for 200 bars ?
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Graph Time and Point label distorted
Can you use SlidingCategoryDataset, or similar?
-
- Posts: 7
- Joined: Mon Jan 14, 2019 3:17 pm
- antibot: No, of course not.
Re: Graph Time and Point label distorted
Currently We are using DefaultCategoryDataset.
-
- Posts: 7
- Joined: Mon Jan 14, 2019 3:17 pm
- antibot: No, of course not.
Re: Graph Time and Point label distorted
Can you please give some sample code snippet to hide the Time labels ?
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Graph Time and Point label distorted
For crowded bar charts, I use SlidingCategoryDataset. Alternatively, consider switching to XYDataset and use SymbolAxis.FourW Support wrote:Currently we are using DefaultCategoryDataset.