Page 1 of 1

Zero values in Bar3D

Posted: Thu Oct 27, 2011 6:16 pm
by 15355256
I need to show 0 value in a Bar3D. I have the code below. What should I change?

Code: Select all

Bar b = new Bar();
        b.getMarks().setVisible(false);
        getChart().addSeries(b);
        b.add(1, 11, "a");
        b.add(3, 12, "b");
        b.add(2, 13, "c");
        b.add(4, 14, "d");

        b = new Bar();
        getChart().addSeries(b);
        b.getMarks().setVisible(false);
        b.add(1, 23, "a");
        b.add(3, 23, "b");
        b.add(2, 24, "c");
        b.add(4, 34, "d");

        b = new Bar();
        getChart().addSeries(b);
        b.getMarks().setVisible(false);
        b.add(1, 0, "a"); //Zero values, here is my problem
        b.add(3, 0, "b");//Zero values, here is my problem
        b.add(2, 1, "c");
        b.add(4, 2, "d");

Re: Zero values in Bar3D

Posted: Mon Oct 31, 2011 12:28 pm
by yeray
Hello,

We made a change in the sources to fix the problem detected here. This fix consisted on not drawing the Bars with value=0. Now I've modified it so the zero values won't only be drawn when MultiBar style is STACKED, STACKED100 or SELFSTACK. So it will be available with the next maintenance release.
In the meanwhile I'm afraid the only thing I can think right now is to change your 0 values to something little but different from 0, for example 0.01.

Re: Zero values in Bar3D

Posted: Mon Oct 31, 2011 6:18 pm
by 15355256
Hello Yeray,

Thank you so much . Meanwhile I will use the value 0.001