So i have a horizontal Bar chart on jaspersoft studio 6.2.0 and i want to fix the Y axis on zero value of X axis(chart has negative values), but no matter what i do it stick always to left side of chart.
This is how i want it to be:
https://drive.google.com/file/d/1nc_CJG ... sp=sharing
and this is what i'm getting:
https://drive.google.com/file/d/10ePx5r ... sp=sharing
Any ideia how to solve it?
Change Y axis location in a Bar Chart
-
- Posts: 2
- Joined: Mon Nov 13, 2017 3:05 pm
- antibot: No, of course not.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Change Y axis location in a Bar Chart
This is just the way JFreeChart works, it isn't something you can change via the API (even modifying the source code, it wouldn't be a straightforward thing to achieve).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- Posts: 2
- Joined: Mon Nov 13, 2017 3:05 pm
- antibot: No, of course not.
Re: Change Y axis location in a Bar Chart
Thanks for the reply david.gilbert.
But can't i reproduce a line similar to the axis? i was trying to do it but don't know how to put the labels on the new line.
It's getting a bit frustrating because client want the chart like that and more than a week of searching and no results :s
But can't i reproduce a line similar to the axis? i was trying to do it but don't know how to put the labels on the new line.
It's getting a bit frustrating because client want the chart like that and more than a week of searching and no results :s
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Change Y axis location in a Bar Chart
It's the labels that are problematic - the code is all written under the assumption that the labels are on the left or right side, never in the middle of the chart. Your client will have to have their "expectations managed"
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program