
I use chart component but each point doesn't show value.
I want to know how to show each point value?
Where I can set property?
I use chart component but each point doesn't show value.
I want to know how to show each point value?
Where I can set property?
Don't forget to tag Perspective or Vision when posting a question (when it's relevant). I've fixed it for you.
There is a property on the Vision Chart component called "Show Tooltips?".
If this property is set to true you can view the value of a point by hovering over it with the mouse.
If you are looking to display all of the values all the time, you can go to https://ideas.inductiveautomation.com/ and submit that as an idea for a new feature.
Put this in configureChart
from java.text import NumberFormat
from org.jfree.chart.labels import StandardCategoryItemLabelGenerator
plot = chart.getPlot()
renderer = plot.getRenderer()
renderer.setBaseItemLabelGenerator(StandardCategoryItemLabelGenerator("{2}", NumberFormat.getNumberInstance()))
renderer.setBaseItemLabelsVisible(True)
thanks