Menu

#1045 XYStepRenderer shows nothing if there is only 1 datapoint

closed-wont-fix
nobody
General (896)
5
2016-11-15
2011-08-06
No

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

Discussion

  • Geoffrey De Smet

    • labels: --> General
     
  • Geoffrey De Smet

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

     
  • Geoffrey De Smet

    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
     
  • Geoffrey De Smet

    hi Martin,

    Yes, I 'd expect it to show a single dot, not just don't show that one data point (effectively saying there is no data, while there is). How do I reopen this ticket?

     
  • Martin Höller

    Martin Höller - 2016-11-15

    Please go to https://github.com/jfree/jfreechart/issues and create a new issue there.
    Also provide a link to this entry.

    PS: I'm currently not actively developing JFreeChart but there are other developers around.

     

Log in to post a comment.

MongoDB Logo MongoDB