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

Radar Chart

Hi, I have the following Radar Chart

Is it possible to add (dotted) lines from the center to each category?


2 Replies

PV Pieter van Kampen August 1, 2017 07:47 AM UTC

Hi, I found I can make the lines with:

 chart.PrimaryCategoryAxis.HasMajorGridLines = true;

 I am new to this, sorry if this was obvious.

Now I have this (different data set):




I would like to change the above to this:


I have tried this, but it has no effect:

               chart.PrimaryCategoryAxis.MajorGridLines.Border.LinePattern = OfficeChartLinePattern.Dash;

                chart.PrimaryCategoryAxis.MajorGridLines.Border.Transparency = 0.6;

                chart.PrimaryCategoryAxis.MajorTickMark = OfficeTickMark.TickMark_Outside;

                chart.PrimaryCategoryAxis.Border.LinePattern = OfficeChartLinePattern.Dash;

                chart.PrimaryCategoryAxis.Border.Transparency = 0.6;

Any suggestions?



SY Sethumanikkam Yogendran Syncfusion Team August 2, 2017 01:04 PM UTC

Hi Pieter,

Thank you for contacting Syncfusion support.

On further analyzing with the given details, we have found that your requirement is to set line pattern for gridlines in the radar chart. If so, we should set major gridlines with line patterns for both primary axis (PrimaryCategoryAxis and PrimaryValueAxis).

Kindly refer and include the below highlighted codes to get the expected result.
 
chart.PrimaryCategoryAxis.HasMajorGridLines = true;
chart.PrimaryCategoryAxis.MajorGridLines.Border.LinePattern = OfficeChartLinePattern.Dash;
chart.PrimaryCategoryAxis.MajorGridLines.Border.Transparency = 0.6;
chart.PrimaryCategoryAxis.MajorTickMark = OfficeTickMark.TickMark_Outside;
chart.PrimaryCategoryAxis.Border.LinePattern = OfficeChartLinePattern.Dash;
chart.PrimaryCategoryAxis.Border.Transparency = 0.6;

chart.PrimaryValueAxis.HasMajorGridLines = true;
chart.PrimaryValueAxis.MajorGridLines.Border.LinePattern = OfficeChartLinePattern.Dash;
chart.PrimaryValueAxis.MajorGridLines.Border.Transparency = 0.6;
chart.PrimaryValueAxis.MajorTickMark = OfficeTickMark.TickMark_Outside;
chart.PrimaryValueAxis.Border.LinePattern = OfficeChartLinePattern.Dash;
chart.PrimaryValueAxis.Border.Transparency = 0.6;
 

If we misunderstood any of your requirement, then kindly update us your requirement with sample for clear description along with input document (if any) and screenshot/output Word document of the expected result which will helpful to provide you the appropriate solution at the earliest.

Please let us know if you have any other questions.

Regards,
Sethumanikkam.Y


Loader.
Up arrow icon