-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everybody,
i want to create a 3d scatter chart with axis for all three directions. I have tried the following code but the z-axis title and ticks are not shown. Which option do i have to use to make them visible?
Options3D opt3d = chart.getOptions3D();
Frame3D frame = opt3d.getFrame();
BottomPanel bottom = frame.getBottom();
BackPanel back = frame.getBack();
SidePanel side = frame.getSide();
opt3d.setEnabled(true);
opt3d.setAlpha(10);
opt3d.setBeta(30);
opt3d.setDepth(250);
opt3d.setViewDistance(5);
bottom.setSize(1);
bottom.setColor("rgba(0,0,0,0.02)");
back.setSize(1);
back.setColor("rgba(0,0,0,0.04)");
side.setSize(1);
side.setColor("rgba(0,0,0,0.06)");
ScatterPlotOptions sot = chart.getPlotOptions().getScatter();
sot.setWidth(10);
sot.setHeight(10);
sot.setDepth(10);
YAxis y0 = new YAxis();
XAxis x0 = new XAxis();
ZAxis z0 = new ZAxis();
y0.setTitle("Y");
y0.setMin(0);
y0.setMax(10);
x0.setTitle("X");
x0.setMin(0);
x0.setMax(10);
x0.setGridLineWidth(1);
z0.setTitle("Z");
z0.setMin(0);
z0.setMax(10);
chart.setYAxis(y0);
chart.setXAxis(x0);
chart.setZAxis(z0);
Best Regards,
Dresse
Asked: 2016-08-29 15:28:45 +0800
Seen: 7 times
Last updated: Aug 29 '16