ChartToolTipBehavior

Overview

ChartTooltipBehavior is responsible for rendering concise information about a data point in a small popup which is displayed close to its relevant data point.

With R2 2018 SP release Behaviors property of RadChart was replaced with ChartBehaviors. Behaviors property is marked as obsolete, so please use ChartBehaviors instead.

Features

  • TriggerMode: Determines the gestures on which the ChartToolTipBehavior should show a tool tip. The available values are:
    • Tap
    • Hold

Example

<telerikChart:RadCartesianChart>
  <telerikChart:RadCartesianChart.BindingContext>
    <viewMoedls:CategoricalViewModel/>
  </telerikChart:RadCartesianChart.BindingContext>
  <telerikChart:RadCartesianChart.ChartBehaviors>
    <telerikChart:ChartTooltipBehavior TriggerMode="Tap"/>
  </telerikChart:RadCartesianChart.ChartBehaviors>
  <telerikChart:RadCartesianChart.HorizontalAxis>
    <telerikChart:CategoricalAxis/>
  </telerikChart:RadCartesianChart.HorizontalAxis>
  <telerikChart:RadCartesianChart.VerticalAxis>
    <telerikChart:NumericalAxis/>
  </telerikChart:RadCartesianChart.VerticalAxis>
  <telerikChart:RadCartesianChart.Series>
    <telerikChart:LineSeries ItemsSource="{Binding CategoricalData}">
      <telerikChart:LineSeries.ValueBinding>
        <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/>
      </telerikChart:LineSeries.ValueBinding>
      <telerikChart:LineSeries.CategoryBinding>
        <telerikChart:PropertyNameDataPointBinding PropertyName="Category"/>
      </telerikChart:LineSeries.CategoryBinding>
    </telerikChart:LineSeries>
  </telerikChart:RadCartesianChart.Series>
</telerikChart:RadCartesianChart>

Here is how the tool-tip looks:

Tooltip Behavior

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy