1

I'm trying to change width of line in XYPlot and size of point, any suggestion?

And another question - how i disable legend to SimpleXYSeries? Set to null cause Error.

Anton Smatanik
  • 587
  • 1
  • 9
  • 25

1 Answers1

1

I'm trying to change width of line in XYPlot and size of point. Any suggestion?

As shown here, you can alter the line thickness using either setSeriesStroke() or setBaseStroke() in your chosen renderer. Assuming XYLineAndShapeRenderer, you can change the rendered Shape using the approach shown here.

How I disable the legend?

You can pass false for the legend parameter to your chosen ChartFactory method or JFreeChart constructor.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • See also [*How to set line thickness in JFreeChart?*](https://stackoverflow.com/q/52890150/230513). – trashgod Oct 19 '18 at 16:50