How to display symbols with chart points and add shadow effects in WinForms Chart?
To customize symbols and shadows in a Syncfusion® WinForms Charts, you first need to set the shape, size, and color for the symbol. You can then assign this symbol to the Symbol property exposed by the ChartStyleInfo class.
To display a shadow for the chart control, set its ChartAreaShadow property to true. Additionally, to display a shadow for a series, make the DisplayShadow property, also exposed by ChartStyleInfo, true.
// Displaying shapes in series
series.Style.Symbol.Shape = ChartSymbolShape.Pentagon;
series.Style.Symbol.Color = Color.Red;
series.Style.Symbol.Size = new Size(15,15);
// Display shadow in series
series.Style.DisplayShadow = true;
series.Style.ShadowOffset = new Size(5, 5);
// Display shadow in chart area
this.chartControl1.ChartAreaShadow = true;
'Displaying shapes in series
series.Style.Symbol.Shape = ChartSymbolShape.Pentagon
series.Style.Symbol.Color = Color.Red
series.Style.Symbol.Size = New Size(15, 15)
'Display shadow in series
series.Style.DisplayShadow = True
series.Style.ShadowOffset = New Size(5, 5)
'Display shadow in chart area
Me.chartControl1.ChartAreaShadow = TrueOutput:
Conclusion
I hope you enjoyed learning about how to display symbols with chart points and add shadow effects in WinForms Chart.
You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!