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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change the line color and width

Thread ID:

Created:

Updated:

Platform:

Replies:

144983 May 31,2019 05:48 AM UTC Jun 3,2019 07:20 AM UTC JavaScript - EJ 2 3
loading
Tags: Chart
Qi Luo
Asked On May 31, 2019 05:48 AM UTC

Hi Support,

I have a radar chart and draw type is Line, how can i change the Line color and Width in the radar chart from blue to red and make it thicker



Many Thanks

Baby Palanidurai [Syncfusion]
Replied On May 31, 2019 06:39 AM UTC

Hi Qi, 

Greetings from Syncfusion. 

We have analyzed your query. You can change the radar series color and width by using fill and width properties in series options. 

Code snippet: 
let chart: Chart = new Chart({ 

  //Initializing Chart Series 
  series: [ 
    { 
      type: 'Radar', 
      width: 4, fill: 'red' 
    } 
  ], 
}); 

Screenshot: 
 


Kindly revert us, if you have any concerns.  

Regards, 
Baby. 


Qi Luo
Replied On June 3, 2019 12:48 AM UTC

Thanks for the solution, If I want to change x and y's line thicker and different color, how can i do that please, and also if i want to set Business Acumen to be bold, is there a way i can do it please?

thanks

Baby Palanidurai [Syncfusion]
Replied On June 3, 2019 07:20 AM UTC

Hi Qi, 

Thanks for your update. 

We have analyzed your query. Please find the below response for your queries. 

Query 1: If I want to change x and y's line thicker and different color 
 
You can change the axis line and grid line color by using lineStyle and majorGridLines in axis options. 
 
For more information about grid line customization, kindly find the below documentation link, 
 
 
Code snippet:  
primaryXAxis: { 
    majorGridLines: { 
      width: 2, 
      color: 'blue' 
    } 
  }, 
  primaryYAxis: { 
    lineStyle: { 
      width: 2,  
      color: 'transparent' 
    }, 
     majorGridLines: { 
      width: 2, 
      color: 'green' 
    } 
  }, 
 
 
      
Screenshot: 
 
 
 

Query 2: if i want to set Business Acumen to be bold, is there a way i can do it please? 

You can customize the particular text in the axisLabelRender event. For more information about axisLabelRender event, kindly find the below documentation link, 

But currently label style changes is not reflecting in axisLabelRender event for polar and radar alone. So we have logged a defect report for this. You can keep track of the bug from the feedback portal below.     
    
 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it   
as a comment in the portal.     
 
The fix will be available in our upcoming weekly patch release which is expected to be rolled out at 11th June, 2019.  


Regards, 
Baby. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon