Jump to content
JChartFX Community
  • 0

Reduce size/distance between points on x-axis


cookie
 Share

Question

hi

I'm trying to reduce the size of the spacing between the data points on the X axis say. I've looked through the documentation including http://support.softwarefx.com/jChartFX/article/2501235#f9fd4d36-1e34-e211-84a5-0019b9e6b500 but this appears to be talking about scaling the units of measurement and not the 'actual space between the points'. In fact, I'd like to shrink my whole graph - to make it fit inside a sidebar on my website; say 200px width in total.

Url http://acookson.org/test/

best wishes

Andy

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I see your chart is a gantt chart so if you mean reduce the space between the bars you can use the Volume property to control this spacing, 100% volume will draw bars with no space between them

    chart1.getAllSeries().setVolume(100);

You can also move the legendbox to the bottom to reduce the wasted space to the right of the chart (or hide the legendbox altogether) if you need your chart to be smaller. 

JuanC 

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
Answer this question...

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

Loading...
 Share

×
×
  • Create New...