Hello-
I have a large dataset (5x 30k points) that is viewed in several different JPanels. All of the panels (save one) are linked now on zoom as to go to the proper locations.
I now need, however, to make the individual points 'larger' as a 1x1 pixel, while looking great for this large dataset on the graph, is too difficult to see on zoom in.
Repainting each graph/zoom takes approximately 3 seconds- my data is static and won't change during that time period.
I've searched but I must not have used the correct terms- ideas are most welcome.
Jason
XYDotRenderer with Dynamic DotWidth DotHeight ?
-
- Posts: 17
- Joined: Wed Nov 10, 2004 11:29 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You'll need to modify the XYDotRenderer to achieve this. All that needs changing is the drawItem() method, where the fixed width and height are used to draw the data items. You need to scale these according to your axis range - the scale factor is going to be dependent on the range of values in your dataset, so you'll probably want to make that configurable.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 17
- Joined: Wed Nov 10, 2004 11:29 pm