The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
DJDavis Jebaraj Syncfusion Team November 4, 2004 01:50 PM UTC
Hi,
The Highlight color is controlled by the HightlightInterior property of a point style. You can modify the Highlight interior for each point by setting the Style.HighlightInterior:
Approach 1:
Set the HighlightInterior for each point style. If a series has 10 points, you need to set the style for all 10 point styles
VB.NET:
Dim highlightColor As BrushInfo = New BrushInfo(Color.LightBlue)
seriesCount.Styles(0).HighlightInterior = highlightColor
seriesCount.Styles(1).HighlightInterior = highlightColor
seriesCount.Styles(2).HighlightInterior = highlightColor
seriesCount.Styles(3).HighlightInterior = highlightColor
seriesCount.Styles(4).HighlightInterior = highlightColor
seriesCount.Styles(5).HighlightInterior = highlightColor
seriesCount.Styles(6).HighlightInterior = highlightColor
seriesCount.Styles(7).HighlightInterior = highlightColor
seriesCount.Styles(8).HighlightInterior = highlightColor
seriesCount.Styles(9).HighlightInterior = highlightColor
Approach 2 (Recommended):
Use the callback approach
AddHandler seriesCount.PrepareStyle, AddressOf Me.ChartControlSeries_PrepareStyle
Protected Sub ChartControlSeries_PrepareStyle(ByVal sender As Object, ByVal args As ChartPrepareStyleInfoEventArgs)
'' Style formatting using a callback. You can apply the same settings directly on the series style on the
'' point styles.
Dim series As ChartSeries = sender
Dim rand As New Random()
If Not (series Is Nothing) Then
args.Style.HighlightInterior = New BrushInfo(Color.LightBlue)
args.Handled = True
End If
End Sub
Thanks,
Davis
DJDavis Jebaraj Syncfusion Team November 4, 2004 01:59 PM UTC