Looking for ideas to implement an specific chart #333
-
Beta Was this translation helpful? Give feedback.
Answered by
Gowsky
Aug 6, 2023
Replies: 1 comment 2 replies
-
The problem here is that I can not specify the red color for minus percents. And also I could not find a way to put the 0% value on the middle of the y axis. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @rezafaraji93, the current version of Vico may not allow you to easily recreate the chart from the sample. The upcoming 1.9.0 release will improve how vertical axes handle charts with positive and negative values, so the
y=0
will be always visible.Regarding distinct colors for positive and negative values — we will support them in future releases. However, you can work around this limitation by splitting your single list of entries into two. One for positive, and a second one for negative values. Then you will need to set two different
LineComponent
s to your column chart, and themergeMode
toMergeMode.Stack
.