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
Hi @ducsilva 👋
Thanks for requesting this feature. It is now implemented in the latest version of the library. Please use version 1.3.8 of react-native-gifted-charts
I have added support for a new property named isSecondary in the lineConfig object. Setting isSecondary to true results in making the line correspond to the secondary Y axis.
Here's an example-
The code for the above chart is-
constdata=[10,20,30,20,15,12];constlineData=[12,5,8,15,8,10];return(<Viewstyle={{backgroundColor: 'black'}}><BarChartdata={data.map(i=>{return{value: i};})}showGradientfrontColor={'#8BC9CB'}gradientColor={'#07A0A3'}barBorderTopLeftRadius={4}barBorderTopRightRadius={4}hideRulesyAxisColor={'gray'}xAxisColor={'gray'}yAxisTextStyle={{color: 'gray'}}secondaryYAxis={{yAxisLabelPrefix:'$'}}showLinelineData={lineData.map(i=>{return{value: i};})}lineConfig={{thickness: 4,color: 'yellow',hideDataPoints: true,isSecondary: true,// this is the newly added property}}/></View>);
Describe the isssue
I want to show my chart with LineChart data left and Bar chart with data right as below image. Have you any idea for this?
To Reproduce
Steps to reproduce the
The text was updated successfully, but these errors were encountered: