Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Positive and Negative color for Line Chart #159

Open
abdoerrahiem opened this issue Sep 12, 2023 · 5 comments
Open

Positive and Negative color for Line Chart #159

abdoerrahiem opened this issue Sep 12, 2023 · 5 comments

Comments

@abdoerrahiem
Copy link

I want to make 2 different colors for the chart, but I cannot figure it out how to do so in Line Chart. The idea is just like the Candle Stick Chart that can receive positive and negative color. But in this chart I want the positive color shows if the value is above or same as current price (horizontal line), and the opposite for the negative color.

Currently, I just can put one color for the chart like below.

Screen Shot 2023-09-12 at 13 29 00

@dima-devs
Copy link

Hi @abdoerrahiem did you figure out this feature?

@abhi11verma
Copy link

abhi11verma commented Feb 22, 2024

Do you want 2 color (positive and negative) on the same chart ?
Or want to change the complete line color to positive/negative based on some reference value ?

@Lucas0liveir
Copy link

I tried this with an index map whose value was less than my reference (horizontal line) using Highlight
But the result was not ideal because the meeting point between a negative and a positive value did not change the color.

What we want is something similar to what Yahoo Finance does, for example:
IMG_20240222_130127

@cihangir-mercan
Copy link

Hi @abdoerrahiem did you figure out this feature?

hi did you figure out?

@AshotN
Copy link

AshotN commented Apr 16, 2024

It's been a long time since I've used this package. But here is how I had done it.

ee1e69f

@cihangir-mercan
Copy link

cihangir-mercan commented Apr 16, 2024

It's been a long time since I've used this package. But here is how I had done it.

ee1e69f

Thanks :) I am trying this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants