I need to render my data as bars

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sigourneyanderson
Posts: 2
Joined: Wed Sep 08, 2021 4:06 am
antibot: No, of course not.

I need to render my data as bars

Post by sigourneyanderson » Wed Sep 08, 2021 4:10 am

Hi everyone,

I have a x,y dataset of floats that spans the x-interval [0,1]. I need to render my data as bars. However, the bars are drawn with constant width and overlay on top of each other. I read other posts saying it is impossible to change the bars' width. I almost gave up and then I saw that in the example
HistogramDemo1.java, the bars do adjust to a proper width.

What classes to I need to override to get a control of bars; width in JfreeChart. I am using XYPlot and XYBarRenderer.

Thanks in advance!!!

Locked