Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
Binding a collection to DataSource and showing tool tip
posted

Hi,

I am binding the view model to chart like this,

<chart:XamWebChart.Series>
            <chart:Series ChartType="Column" DataSource="{Binding DataCollection}" DataMapping="Label=Label;Value=Value">
            </chart:Series>
</chart:XamWebChart.Series>

The data is displayed properly and works fine. But I want to show tool tips when I mouse over on data points. If I create datapoints collection in code, I can specify tool tip, but when I bind how to specify tool tip for data point?

Please help

Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    Hi, you should be able to set the tooltip in the datamapping also:

    DataMapping="Label = Label; Value = Value; ToolTip = ToolTip"

    -Graham

Children
No Data