Articles in this section
Category / Section

How to add the image to the series?

1 min read

 

First add the Imagelist Control and set it as the imagelist associated with the Chart. Then specify the ImageIndex value at the imageindex property exposed by the ChartSymbolInfo. Set the series symbol as Image using Shape property, the image is exposed in the series.

C#

//Setting Image for the series

series.Style.Images = new ChartImageCollection(this.imageList1.Images);

series.Style.Symbol.ImageIndex =0;

series.Style.Symbol.Size = new Size(20,20);

//Set the series symbol as Image

series.Style.Symbol.Shape =ChartSymbolShape.Image;

VB

'Setting Image for the series

series.Style.Images = New ChartImageCollection(Me.ImageList1.Images)series.Style.Symbol.ImageIndex =0

series.Style.Symbol.Size = New Size(20,20)

'Set the series symbol as Image

series.Style.Symbol.Shape = ChartSymbolShape.Image

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied