HOW TO SET NO BLUR FOR LINE CHART LINE SERIES C#

1 Answer 238 Views
ChartView Styling
Genda
Top achievements
Rank 2
Genda asked on 27 Aug 2021, 04:21 AM

Hai EveryOne,

i have a problem from my grafik chart line series..
i want to set no blur if the grafik vertical, but if the line horizontal. the line not blur when zoom..

how this solustionn,,,

tihis is source code section

 

 LineSeries series = new LineSeries();
            series.CategoryMember = "MonthName";
            series.ValueMember = "TotalAsset";
            series.DataSource = m_LineChartList;
            series.PointSize = new SizeF(7, 7);
            series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            //test
            //series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            //series.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
            //series.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
            //series.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            series.Padding = new Padding(20);
            series.IsVisible = true;
            series.LinesToLabelsColor = Color.FromArgb(0, 0, 0);

            series.BackColor = Color.FromArgb(0, 50, 0);
            series.BorderColor = Color.FromArgb(0, 50, 0);

 

 

 

thanks every one

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 30 Aug 2021, 02:40 PM

Hello, Genda,

I would like to note that LineSeries internally uses Graphics for drawing the lines. So, this behavior is applicable for all Winforms controls not only RadControls. Graphics.SmoothingMode property sets the rendering quality for this Graphics. The possible solution that I can suggest is to set it to AntiAlias. 

The following threads might be useful on this topic:
https://stackoverflow.com/questions/5569215/how-to-make-drawline-smoother 
https://stackoverflow.com/questions/17222990/good-looking-graphics-in-c-sharp-window-form 

I hope this information is useful. Let me know if you have other questions.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ChartView Styling
Asked by
Genda
Top achievements
Rank 2
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or