Markup Title Support
The chart can contain multiple sets of titles that can be docked to the top, bottom, left or right of the chart. You can also stack multiple titles to the same docking location. In addition to normal text, titles can contain xml Markup snippets to format the title's text.
// Sample Code
Dim pContent As ChartContent
Set pContent = ChartControl.Content
pContent.EnableMarkup = True
pContent.Legend.Visible = False
Dim pTitle As ChartTitle
Set pTitle = pContent.Titles.Add("<TextBlock><Bold>Chart Control</Bold> <Run>supports</Run> <Run Foreground='Green'>Titles</Run> </TextBlock>")
Set pTitle = pContent.Titles.Add("Left Title")
pTitle.Docking = xtpChartDockLeft
Set pTitle = pContent.Titles.Add("<TextBlock><Run Foreground='Blue'>Right</Run> <Run Foreground='Red'>Title</Run></TextBlock>")
pTitle.Docking = xtpChartDockRight
Set pTitle = pContent.Titles.Add("<TextBlock FontSize = '20px'>Click Title to set its propeties</TextBlock>")
pTitle.Docking = xtpChartDockBottom
Dim pCollection As ChartSeriesCollection
Set pCollection = pContent.Series
pCollection.DeleteAll
If Not pCollection Is Nothing Then
Dim pSeries1 As ChartSeries
Set pSeries1 = pCollection.Add("Series")
If Not pSeries1 Is Nothing Then
pSeries1.Name = "Series"
Dim pPoints As ChartSeriesPointCollection
Set pPoints = pSeries1.Points
pPoints.Add 0, 0.5
pPoints.Add 1, 2
pPoints.Add 2, 1
pPoints.Add 3, 1.5
pPoints.Add 4, 3
pPoints.Add 5, 2.5
pPoints.Add 6, 1
pPoints.Add 7, 0.5
pPoints.Add 8, 1.5
pPoints.Add 9, 2.5
pPoints.Add 10, 0.5
pPoints.Add 11, 2
pPoints.Add 12, 1
pSeries1.Style = New ChartAreaSeriesStyle
pSeries1.Style.Label.Visible = False
End If
Dim pDiagram As ChartDiagram2D
Set pDiagram = pContent.Diagrams(0)
pDiagram.AxisX.Label.Visible = False
pDiagram.AxisY.Label.Visible = False
pDiagram.AxisX.Range.SideMargins = False
End If
// Sample C# Code




