Jump to content
JChartFX Community
  • 0

Adjusting the PointLabel distance from the bar


jpohlmann

Question

1 answer to this question

Recommended Posts

  • 0

This code will push the labels 6 pixels away from the bars in a gantt chart, please note that in vertical galleries, the offset is used as X,Y but in Gantt is reversed to Y,X.

    chart1.setGallery(cfx.Gallery.Gantt);

    var pointLabels = chart1.getAllSeries().getPointLabels();

    pointLabels.setVisible(true);

    pointLabels.setOffset("0,6");

Note that the depth of a 3D bar depends on the number of bars in your chart so the offset might have to be changed depending on the total number of points*series in the chart , we will research if we can change our behavior so that the labels do not get painted over the face of the lateral side in a gantt chart.  

Regards,

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...
×
×
  • Create New...