#1045 XYStepRenderer shows nothing if there is only 1 datapoint

closed-wont-fix
nobody
General (896)
5
2011-10-10
2011-08-06
Geoffrey De Smet
No

In 1.0.13, with a series with only 1 point to XYStepRenderer shows nothing, not even a small (almost invisible) dot.

Discussion

    • labels: --> General
     
  • It's clear what's going on though: drawItem(...) never does getItemShapeVisible() or any shape drawing code like it's parent.

     
  • Wrong comment above. Sorry. The correct comment is:

    the "if (item > 0) {" means that on the first point nothing is drawn. I should have an else I presume.
    PS: any change of moving jfreechart to git and mvn? I 'd fork, build, fix and supply a pull request (= patch).

     
  • Martin Höller
    Martin Höller
    2011-10-10

    XYStepRenderer draws steps (vertical and horizontal lines) between datapoints. If only one datapoint is availble, no steps can be drawn.
    What would you expect to be drawn? A single dot?

    I'll close this entry for now. If you still fee it to be a bug, please reopen it.

     
  • Martin Höller
    Martin Höller
    2011-10-10

    • status: open --> closed-wont-fix