Adornment from code C#

I want to create series since C# with adornmentsInfo, my problem isn't how to create the serie, my problem is how to reference the adornments with properties.

With this, I want to extract database information and create a serie for each extracted value, but my problem for the moment are the adornments.

Thanks for the help.

1 Reply

SJ Sumathi Jayaraj Syncfusion Team January 22, 2016 12:58 PM UTC

Hi Tomas,

Thanks for contacting Syncfusion support.

We can refer the adornment’s properties with the instance of ChartAdornmentsInfo. We can set the properties as defined in the below code sample.

Code snippet[C#]:



ColumnSeries series = new ColumnSeries();

ChartAdornmentInfo adornmentInfo = new ChartAdornmentInfo()

{

    ShowMarker = true,

    ShowLabel = true,

    Symbol = ChartSymbol.Ellipse
};
series.AdornmentsInfo = adornmentInfo;



We have prepared a sample for your requirements and please find the attachment.

Sample: 
ChartAdornmentSample

Regards,
Sumathi J


Loader.
Up arrow icon