New rangeaxis on stackedbarchart3D

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
adrianvalencia
Posts: 2
Joined: Wed Jun 01, 2011 2:51 pm
antibot: No, of course not.

New rangeaxis on stackedbarchart3D

Post by adrianvalencia » Wed Jun 01, 2011 3:21 pm

Hi,

I'm using StackedBarChart3D (with StackedBarChart (2D) I don't have this problem) and when I try to add a new valueAxis the axis is out of position... :?

I need to put in the ValueAxis ​​different values from values ​​that have been used to draw the graph. (Strings in my case)

If you can see the image you´ll see two charts: the first is correct but in the second I change the original axis. Both are independent. I put it together to see the differences in the final and the beginning axis.

CategoryPlot categoryplot = grafico.getCategoryPlot();
ValueAxis newAxis= new SymbolAxis("", new String[] { "-9","-8","-7", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11","12", "13", "14", "15", "16", "17", "18", "19" });
categoryplot.setRangeAxis(0,newAxis);

(original axis and this newAxis have the same number of elements)

IMAGE:

link: http://postimage.org/image/zar7phok/

or

link: http://www.imgplace.com/viewimg839/5299/59charts.jpg


THANKS

Locked