1

I'm using JFreeChart to draw data points, and some of them include zero point.

As I know, by default, JFreeChart does not draw zero points (e.g. (0,0), (1,0), (2,0) do not show up in a graph).

I have tried setting

plot.setDomainZeroBaselineVisible(true);
plot.setRangeZeroBaselineVisible(true);

But I still cannot see the zero points.

Does anyone know how to show it?

p.s. Unfortunately, I cannot upload the screenshot. It is blocked...

Andrew
  • 3,272
  • 2
  • 25
  • 26
Ayden Kim
  • 21
  • 7
  • `JFreeChart` shows zero points perfectly well, for [example](http://stackoverflow.com/a/11895709/230513). Please edit your question to include an [sscce](http://sscce.org/) that exhibits the problem you describe. – trashgod Jul 08 '13 at 00:56
  • Yes, I know that it works if the graph has negative points as well. But it does not show zero points when it has only positive points (I mean Y point). – Ayden Kim Jul 08 '13 at 01:27
  • Absent a screenshot, your [sscce](http://sscce.org/) should be sufficient. – trashgod Jul 08 '13 at 01:49
  • Solved it. Reference this page. http://www.jfree.org/forum/viewtopic.php?f=3&t=116563&sid=20357169f61a0fe07134892b75238331 – Ayden Kim Jul 09 '13 at 00:05

0 Answers0