Jump to content
Software FX Community

Line Graph - X-Axis - Empty Space Before First Point, After Last Point


Recommended Posts

You need to have an XY chart; in other words, your chart right now is using a categorical axis and in order to get the desired graph, your chart needs to use a numerical axis. To do this, you can simple set XValues for your chart. You can do something like the following:

chart1.openData(COD.XVALUES, 1, 10);

chart1.openData(COD.VALUES, 1, 10);

int i = 0;

for (int j = 0;j<10;j++)


chart1.getValue().setItem(0, j, r.nextDouble()  * 50);

chart1.getXValue().setItem(0, j, i);





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.

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...