I added a feature to allow users to toggle item labels on charts. This is implemented by saving a pointer to the XYItemRenderer and calling the renderer’s setBaseItemLabelsVisible method to show/hide item labels. However, it would be nicer if I could get a pointer to the XYItemRenderer from the chart instance, but give the cart I only seem to get as far as the plot. Does anyone know how to get a pointer to the renderer given the chart?
Share
You will need to cast the plot to say
CategoryPlot, XYPlotetc. to get the renderers.