This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, A while back you added a LabelBinding property to the DataSeries, which I have found to be very helpful. Would it be possible to add a similar ToolTipBinding property? Then when the DataPoints are set up something like the following function would be called:
Thanks Peter |
|
|
Hello Peter The next nightly build will include the DataSeries.ToolTipBinding property. This works in the same way as the LabelBinding property. You can create a custom data point style which includes a tool tip. In the tool tip template you can bind to the ToolTipContent property to get the object that resulted from the binding you specified. The next nightly build will be available at around 1200 GMT (about 11 hours from now) which you can pick up from your account page: http://www.mindscapehq.com/store/myaccount Jason Fauchelle |
|
|
Hi Jason, Thanks for the quick update. I was initially a bit puzzled that my tooltips did not show up, but then I found I didn't read your post carefully. Now I see that that my tool tip gets set on the ToolTipContent property instead of the ToolTip property directly, and I need to create a custom DataPoint style to bind the ToolTip property to the ToolTipContent property. I guess I'm wondering why it wouldn't make sense to set the ToolTipBinding on the ToolTip property in the first place, and save this extra step. I would like to set tooltips on multiple series types, and I'm not sure about the best way to handle this in a general way. I did to a quick test where I set the ToolTipBinding on the ToolTip property instead of the ToolTipContent property, and it seemed to work fine. What are your thoughts on this? By the way, I would like to be able to set tooltips on PieSeries as well, and I see that does not derive from DataSeries, so I would also appreciate handling that case also.\ Peter |
|
|
Hello Peter I agree it is much better for the ToolTipBinding to bind to the ToolTip property directly, so this will be updated in the next nightly build. I had initially been experimenting this feature on a bar chart with a heavily templated custom tooltip. This was using the ToolTip property so going through a ToolTipContent property seemed like the easiest solution at the time. PieSeries will also have a ToolTipBinding property in the next nightly build. Jason Fauchelle |
|
|
Hi Jason, Great! That will make it much easier for me to use. Peter |
|