You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the second line as only a line using the areaChart2 props set to false
As you can see both lines are displayed as an area graph.
As a workaround I temporarly modified the file /LineChart/index.js in the Gift-charts-core module.
line 1492 -> if ((areaChart ?? areaChart2) && data2.length > 0) {
replaced by: if (areaChart2 && data2.length > 0) {
Also is there a way to specify specific lineGradientId and areaGradientId for each line ?
Hi @McFly78@xuxiaoqian1 Thanks for pointing out this issue.
It has been fixed from versions 1.4.48 onwards. Please use the latest version of the library.
Description
I am trying to display a Line graph with 2 lines:
As you can see both lines are displayed as an area graph.
As a workaround I temporarly modified the file /LineChart/index.js in the Gift-charts-core module.
line 1492 -> if ((areaChart ?? areaChart2) && data2.length > 0) {
replaced by: if (areaChart2 && data2.length > 0) {
Also is there a way to specify specific lineGradientId and areaGradientId for each line ?
Many thanks
Steps to reproduce
Snack or a link to a repository
No response
version of react-native-gifted-charts
1.4.46
React Native version
0.74.4
Platforms
iOS
Workflow
React Native
The text was updated successfully, but these errors were encountered: