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
1655
xamchart tooltip
posted

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">

<

 

 

igCA:Series.DataPoints

>

 

 

 

 

<igCA:DataPoint Name="dt8_CC" Label

="Wk8" >

 

 

<igCA:DataPoint.ToolTip>

 

 

<TextBlock Text="Test fpr roolrip"></TextBlock>

 

 

</igCA:DataPoint.ToolTip>

 

 

 

 

 

 

 

 

</igCA:DataPoint

>

 

 

 

 

<igCA:DataPoint Name="dt7_CC" Label

="Wk7" >

 

 

<igCA:DataPoint.ToolTip>

 

 

<TextBlock Text="Test fpr roolrip"></TextBlock>

 

 

</igCA:DataPoint.ToolTip>

 

 

 

 

 

 

 

 

</igCA:DataPoint

>

 

 

 

 

<igCA:DataPoint Label="Wk6" Name

="dt6_CC">

 

 

<igCA:DataPoint.ToolTip>

 

 

<TextBlock Text="Test fpr roolrip"></TextBlock>

 

 

</igCA:DataPoint.ToolTip>

 

 

 

 

 

 

 

 

</igCA:DataPoint

>

 

 

</igCA:Series.DataPoints>

 

 

</igCA:Series>

Thanks,

Parents
  • 30692
    Verified Answer
    Offline posted

    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

Reply Children
No Data