width of domain axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nbajaj
Posts: 5
Joined: Thu Oct 07, 2010 11:53 am
antibot: No, of course not.

width of domain axis

Post by nbajaj » Sun Oct 10, 2010 7:39 pm

hi

i m new to jfreechart ---i m developing a 3 dimensional stacked bar chart ---where i need to display the chart bar as they are in a 3 dimensional box or rectangle ----i think that it can be achieved by increasing the width of domain axis ---pls let me know how to

do it --how to increase the axis Space

can we change the color of domainAxis (gray)

pls let me knw





i want to make 3 D chart ---i m using few lines of code as given ---the point is that--

there are only two axis given by the jfreeChart that is domainAxis(x) and rangeAxis(y)---what about the

3rd axis(z)---suppose i want to increase the width of domainAxis ---or i want to set some properties of z axis---which i m unable to find----

pls let me know how to use the z axis () in 3 dimensional ---thanks

JFreeChart chart = ChartFactory.createStackedBarChart3D("Comparison between Salesman",
"Salesman", "Profit", dataset, PlotOrientation.VERTICAL,
true, true, false);

CategoryPlot p = chart.getCategoryPlot();

CategoryAxis3D as = (CategoryAxis3D) p.getDomainAxis();


NumberAxis3D rangeAxis = (NumberAxis3D) p.getRangeAxis();

as.setTickLabelsVisible(true);
as.setTickLabelPaint(Color.red);

CategoryItemRenderer renderer = p.getRenderer();



thanks

Locked