Multicolor line chart based on y-axis value range #1165
|
How to show multicolor line chart based on y-axis value range, for example : i need this color range : color -> value range #E22F37 -> {/* 162– and above /} |
Replies: 3 comments
|
Hi @Jaleelgz The library currently supports only a single See #1179 |
|
Hi @Jaleelgz I have added a new prop name type ColorFromToY = {
from: number
to: number
color: ColorValue
}
This is available from versions |
|
Hi @Jaleelgz Since there are multiople ways to apply multi-color, I have documented them all here- https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/blob/master/docs/LineChart/LineChartProps.md#different-ways-to-multi-color |

Hi @Jaleelgz I have added a new prop name
colorswhich accepts an array of objects of typeColorFromToYdescribed below-This is available from versions
1.4.67onwards.See https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/releases/tag/v1.4.67