Jump to content
JChartFX Community
  • 0

Shows the Text property of the Point object.


miguelaup

Question

I'm trying to put a custom text on the PointLabels in a pyramid graph but the only way that i have seen is with:

chart1.getAllSeries().getPointLabels().setFormat("%L%");

But i don't know how to change the "text property of the point object"

 

Someone can help me? Someone know other way to change this text?

 

Thanks in advance

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Normally, the labels are provided along with the data, e.g.

    chart1.setGallery(cfx.Gallery.Pyramid);
    chart1.setDataSource([{"Value":10, "Product":"ABC"}, {"Value":18, "Product":"DEF"}, {"Value":6, "Product":"GHI"}]);
    var pointLabels = chart1.getAllSeries().getPointLabels();
    pointLabels.setVisible(true);
    pointLabels.setFormat("%l");

Note that to show the label you should use lowercase L in the format.

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