Articles in this section

How to style a particular point in a series?

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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied