0

3d scatter chart z-axis

asked 2016-08-29 15:28:45 +0800

Dresse gravatar image Dresse
1

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

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-08-29 15:28:45 +0800

Seen: 7 times

Last updated: Aug 29 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More