Skip to main content
A newer version of this page is available. .

SeriesHintOptionsBase.PointTextPattern Property

Specifies the tooltip text pattern.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public string PointTextPattern { get; set; }

Property Value

Type Description
String

The tooltip text pattern.

Property Paths

You can access this nested property as listed below:

Show 46 property paths
Object Type Path to PointTextPattern
AreaSeries
.HintOptions .PointTextPattern
AreaSeriesBase
.HintOptions .PointTextPattern
AverageTrueRangeIndicator
.HintOptions .PointTextPattern
BarSeries
.HintOptions .PointTextPattern
BarSeriesBase
.HintOptions .PointTextPattern
BollingerBandsIndicator
.HintOptions .PointTextPattern
BubbleSeries
.HintOptions .PointTextPattern
CalculatedSeries
.HintOptions .PointTextPattern
CandleStickSeries
.HintOptions .PointTextPattern
ChaikinsVolatilityIndicator
.HintOptions .PointTextPattern
CommodityChannelIndexIndicator
.HintOptions .PointTextPattern
DonutSeries
.HintOptions .PointTextPattern
EnvelopeIndicator
.HintOptions .PointTextPattern
ExponentialMovingAverageIndicator
.HintOptions .PointTextPattern
FinancialSeries
.HintOptions .PointTextPattern
FullStackedAreaSeries
.HintOptions .PointTextPattern
FullStackedBarSeries
.HintOptions .PointTextPattern
LineSeries
.HintOptions .PointTextPattern
MassIndexIndicator
.HintOptions .PointTextPattern
MedianPriceIndicator
.HintOptions .PointTextPattern
MovingAverageConvergenceDivergenceIndicator
.HintOptions .PointTextPattern
MovingAverageIndicator
.HintOptions .PointTextPattern
PieSeries
.HintOptions .PointTextPattern
PointSeries
.HintOptions .PointTextPattern
RangeAreaSeries
.HintOptions .PointTextPattern
RangeBarSeries
.HintOptions .PointTextPattern
RateOfChangeIndicator
.HintOptions .PointTextPattern
RegressionLineIndicator
.HintOptions .PointTextPattern
RelativeStrengthIndexIndicator
.HintOptions .PointTextPattern
ScatterLineSeries
.HintOptions .PointTextPattern
Series
.HintOptions .PointTextPattern
SideBySideFullStackedBarSeries
.HintOptions .PointTextPattern
SideBySideRangeBarSeries
.HintOptions .PointTextPattern
SideBySideStackedBarSeries
.HintOptions .PointTextPattern
SplineSeries
.HintOptions .PointTextPattern
StackedAreaSeries
.HintOptions .PointTextPattern
StackedBarSeries
.HintOptions .PointTextPattern
StandardDeviationIndicator
.HintOptions .PointTextPattern
StepAreaSeries
.HintOptions .PointTextPattern
StepLineSeries
.HintOptions .PointTextPattern
StockSeries
.HintOptions .PointTextPattern
TriangularMovingAverageIndicator
.HintOptions .PointTextPattern
TypicalPriceIndicator
.HintOptions .PointTextPattern
WeightedCloseIndicator
.HintOptions .PointTextPattern
WeightedMovingAverageIndicator
.HintOptions .PointTextPattern
WilliamsRIndicator
.HintOptions .PointTextPattern

Example

In this example, a hint with preset options appears when a user taps a bubble.

  1. Use the FilmData object collection as the data source for the chart to show the highest grossing films as bubbles.

    using System;
    using System.Collections.Generic;
    
    namespace BubbleChartExample.Data {
    public class FilmData {
        public DateTime Date { get; private set; }
        public string Name { get; private set; }
        public double Value { get; private set; }
        public double WorldwideGrosses { get; private set; }
    
        public FilmData(DateTime date, string name, double value, double worldwideGrosses) {
            Date = date;
            Name = name;
            Value = value;
            WorldwideGrosses = worldwideGrosses;
            }
        }
    }
    
  2. Subscribe to the SelectionChanged event and enable hints for the chart.

    <dxc:ChartView x:Name="bubbleChart"
                   SelectionKind="Point"
                   SelectionMode="Single"
                   SelectionChanged="OnBubbleSelectionChanged" >
        <dxc:ChartView.Hint>
            <dxc:Hint Enabled="True" 
                      ShowMode="OnTap"/>
        </dxc:ChartView.Hint>
    </dxc:ChartView>
    
  3. In the event handler, use the DataSourceKey.DataObject property to access an object that corresponds with the selected bubble and cast it to the type of the data source object (FilmData). Call the ShowHint method to show a hint for the selected bubble and specify the tooltip text pattern.

    using BubbleChartExample.Data;
    using DevExpress.XamarinForms.Charts;
    using Xamarin.Forms;
    
    // … 
    
    void OnBubbleSelectionChanged(object sender, DevExpress.XamarinForms.Charts.SelectionChangedEventArgs e) {
        if (e.SelectedObjects.Count > 0 && e.SelectedObjects[0] is DataSourceKey dataSourceKey) {
            if (dataSourceKey.DataObject is FilmData bubbleDataObject) {
                bubbleSeries.HintOptions = new SeriesHintOptions();
                bubbleSeries.HintOptions.PointTextPattern = 
                    bubbleDataObject.Name + "\nProduction budget: {V$$#M}\nWorldwide grosses: {W$$#.##B}";
                bubbleChart.ShowHint(0, dataSourceKey.Index);
            }
        }
    }
    

Bubble Chart DataAdapter

See Also