miguelaup 0 Posted September 26, 2017 Report Share Posted September 26, 2017 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 Quote Link to post Share on other sites
0 JuanC 3 Posted September 26, 2017 Report Share Posted September 26, 2017 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 Quote Link to post Share on other sites
Question
miguelaup 0
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 post
Share on other sites
1 answer to this question
Recommended Posts
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.