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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to style a particular point in a series?

Platform: JavaScript |
Control: ejChart |
Published Date: November 17, 2014 |
Last Revised Date: July 1, 2019

EjChart allows you to customize each point of the series using “fill” and “border” property of points. You can customize the point’s interior, border width, color and opacity to differentiate it from the other points.

JS

$("#container").ejChart({
 //…
 //…
 series: [{
     points: [{ x: "Russia", y: 81 },
           { x: "Somaliya", y: 25, fill: "#CCEF28", 
             border:{width: 2,color: 'black' } 
           },
           { x: "China", y: 76 }, 
           { x: "India", y: 78 }, 
           { x: "Arabia", y: 32 }, 
           { x: "Japan", y: 98, fill: "#3ef3CC", 
             border:{ width: 2, color: 'black' } 
           },
           { x: "America", y: 92 },
           { x: "Iran", y: 45 }, 
           { x: "Germany", y: 95 }
     ],
     name: 'Gold', fill: "#BCE32A",  type: 'column', animation: true,
 }],
 //…
 //…
});

Screenshot

Style a particular point in a series

JS Playground Link: Point Style

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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