Skip to content

Bar Graph not ready for negative values #138

Open

Description

@diversos

How would you recommend fixing negative values in barChar? I can't explain properly, so I'll show you an example:

github_eg

2010: 0+0+0+0
2011: 0+0+0+0
2012: 0+0+0+0
2013: 0+5+8+0
2014: -38+0+13+0
2015: 45+12+130+0
2016: 0+0+0+0

I think that the xAxis should stay in y=0, and the negative values would go under it.

Activity

  1. codesuki commented on Aug 9, 2017

    @codesuki
    Owner

    That's interesting! I never considered that.
    Let me ask if I understand you correctly.
    13 should be on top of the x-axis and -38 should be below the x-axis?
    So all negatives stack below and all positives stack above right?

  2. diversos commented on Aug 9, 2017

    @diversos
    Author

    Exacly! And several negatives would stack bellow each other. I don't think it should be too hard to implement, since you have the concept at the Scatter Graph.

  3. diversos commented on Sep 25, 2017

    @diversos
    Author

    Did you have some time to try it?

  4. codesuki commented on Sep 27, 2017

    @codesuki
    Owner

    I tried it but there are still some unsolved issues.

    1. What to do with the labels?
    2. Special handling for grouped bar chart

    See here:
    image

  5. codesuki commented on Sep 27, 2017

    @codesuki
    Owner

    Fixed the grouped chart, but no good idea what to do with the labels.

    image

  6. diversos commented on Sep 27, 2017

    @diversos
    Author

    The only two options I see is either let it in the same place, but over the column bar, or push all the labels down, bellow the graphic.

  7. codesuki commented on Sep 27, 2017

    @codesuki
    Owner

    Yep, I can't see a much better way without total customization. I'll change the rendering order, I hope that's good enough.

  8. self-assigned this
    on Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions