We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon