Can I invert the order of a Y Values in a Line Chart?

0

I have an little problem, need create a line chart with a defined numeration on the Y values... but the graphic by default is 0, 1, 2, 3, 4... ascending from the X axis... however I need other numeration... from the X axis descending 110, 100, 90, 80, 70 until 0... like a line graphic in excel... I get it by inverting the values with negatives but I need them to be positive numbers... any idea?

arevalodavid's picture
Joined: May 30 2017 - 8:47pm
Last seen: 6 days 8 hours ago

2 Answers:

1

Can't you just invert the lable expression itself again, when this is the only problem?!? :-)

just an idea - not tried.

Otherwise create a small ChartCustomizer and set the invertion flag to the plot, then you probably won't negate the values before

ChartPanel.getChart().getXYPlot().getRangeAxis().setInverted(true)

hth + regards

C-Box

C-Box's picture
1945
Joined: Jul 19 2006 - 5:58pm
Last seen: 5 days 8 hours ago
0

Thanks it's works perfectly I just change my method to read JFreeChart (:< 

arevalodavid's picture
Joined: May 30 2017 - 8:47pm
Last seen: 6 days 8 hours ago
Feedback