I have a histogram populated using AddXY from various arrays of data. I would like to be able to click on one of the values and determine which dataset that it came from. Is there any way to store additional info along with each data point that I could access later? Something similar to the "Tag" property of Builder components.
thanks,
Kev
Histogram
Hi Kev,
the only way I can think of is by using the label parameter (of the AddXY method) to save this info, you can then set the axis labels style to talValue so the labels will be hidden, and then customize them or simply use custom labels.
Another way could be to use a fake series adding the same data points with the info in the labels, then set the color of the Series to clNone and ShowInLegend to false to hide it.
the only way I can think of is by using the label parameter (of the AddXY method) to save this info, you can then set the axis labels style to talValue so the labels will be hidden, and then customize them or simply use custom labels.
Another way could be to use a fake series adding the same data points with the info in the labels, then set the color of the Series to clNone and ShowInLegend to false to hide it.
Pep Jorge
http://support.steema.com
http://support.steema.com
Histogram
I did try the Label approach, but abandoned it when all the Labels showed up on the chart. I didn't think of forcing the Labels to be hiden. I ended up creating an array that basically incremented with each AddXY call so that I could access them later via the ValueIndex of each data point. This is working well however I might revisit the idea later.
thanks,
Kev
thanks,
Kev