I am creating an area graph with ApexCharts. Basically, it is a stocks price chart. I want that if price goes down, graph at that point should become red and if goes up it should be green.

The data series i am using is like this - series : [{ name: "price", data: [110,200,109,90,89,400] }] . At 110 it should be red ,at 200 it should be green,at 109 it should become red as price dropped.

Related questions 140 How to clear a chart from a canvas so that hover events cannot be triggered? 0 Chart in javascript doesn't change color 0 Apex charts, setting series data from array in state Related questions 140 How to clear a chart from a canvas so that hover events cannot be triggered? 0 Chart in javascript doesn't change color 0 Apex charts, setting series data from array in state 1 Apex area chart background not working as wanted 0 ApexCharts in SolidJS: updating the chart is getting progressively slower after many updates 0 subset stacked bars chart 1 Polar Area onclick event Load 4 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.