kalkih/mini-graph-card

[FR] Display curves with positive trend with "color_1", with negative trend - with "color_2"

Opened this issue · 5 comments

Hi,

Great work first of all. Thanks.

What I want to do is, colorize line between dots according to previous value. For example, value is changed from 2 to 2.1 then the line between these two dots will be green. Then if the value drop again for example to 1.8 then the line between 2.1 and 1.8 is red.

Best,

Have you tried using a color_thresholds option?

as far as i know, color_thresholds is used to color line according to fixed numbers, isn't it? For example above 20 or below 17 or between 10-15.

However I want to colorize between two dots by comparing their values. If the previous one ise above next one then the line between these two dots will be red, but If the previous one ise below next one then the line between these two dots will be another color

In short:
every positive change = color_1
negative = color_2
?
изображение

In short: every positive change = color_1 negative = color_2 ? изображение

Yes :)

Yes, would be great. Great for tracking price movement.