Hi,
I have a xamchart and iam displaying a tooltip for each datapoint. I want to display that tooltip as long as we are hovering the mouse on the datapoint.
I am using following code to display tooltip for datapoint. Please let me know how to set the tooltip visible forever?
<igCA:Series Name="ColumnChart_CC"
Label="Production"
ChartType="Column"
UseDataTemplate="False"
DataPointColor="Different">
<
>
="Wk8" >
<igCA:DataPoint.ToolTip>
<TextBlock Text="Test fpr roolrip"></TextBlock>
</igCA:DataPoint.ToolTip>
="Wk7" >
="dt6_CC">
</igCA:Series.DataPoints>
</igCA:Series>
Thanks,
Thanks Graham,
It works like charm..
You can adjust the duration for which the tooltip will show by modifying the data template that will be used to render the data points. For example, for a column series set UseDataTemplate = true, and specify this data template:
<DataTemplate DataType="{x:Type igCA:ColumnChartTemplate}"> <Border Background="{Binding Path=Fill}" BorderBrush="{Binding Path=Stroke}" BorderThickness="{Binding Path=StrokeThickness}" ToolTipService.ShowDuration="120000" ToolTip="{Binding ToolTip}" > </Border> </DataTemplate>
Let me know how it goes. You can check the documentation for more information about specifying data templates for the various chart series.
-Graham