Jump to content
Software FX Community

Pyramid and zero values


Shady

Recommended Posts

Hi,

 I am trying to display a Pyramid chart with last point value set to zero, however no chart is appearing. Anyone knows if I am missing something or if this is a bug?

 A simplified testcase to reproduce is:

public static void main(String[] args) {
  Chart cc = new Chart();
  cc.setGallery(Gallery.PYRAMID);

  cc.getData().setSeries(1);
  cc.getData().setPoints(2);

  cc.getData().set(0, 0, 10);
  cc.getData().set(0, 1, 0); //If we change this value, the chart is displayed

  JFrame f = new JFrame();
  f.getContentPane().add(cc);
  f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  f.pack();
  f.setVisible(true);
  }

Note that the same chart displayed in Pie for example is visible.

Thanks,

Shady

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...