| |
How to: Make Series Labels Display Custom Information
This example demonstrates how to make series points labels display custom information, in particular - based on the series points values.
C# |
using System;
using System.Windows.Forms;
using DevExpress.XtraCharts;
private void chartControl1_CustomDrawSeriesPoint(object sender,
CustomDrawSeriesPointEventArgs e) {
if(e.SeriesPoint.Values[0] > 1) {
e.LabelText = "Critical value";
}
}
|
VB |
Imports System
Imports System.Windows.Forms
Imports DevExpress.XtraCharts
Private Sub chartControl1_CustomDrawSeriesPoint(ByVal sender As Object, _
ByVal e As CustomDrawSeriesPointEventArgs) Handles chartControl1.CustomDrawSeriesPoint
If e.SeriesPoint.Values(0) > 1 Then
e.LabelText = "Critical value"
End If
End Sub
|
The result is shown in the following image.


See Also
Is this topic helpful?
Additional Feedback
Close
|