wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.43k stars 657 forks source link

StackedBarChart is not available in this new version #966

Open MAYILERUMPERUMAL opened 11 months ago

MAYILERUMPERUMAL commented 11 months ago

Included the Attachments photo android and IOS StackedBarChart but Updated Version StackedBarChart is Not available

vivek154 commented 10 months ago

Included the Attachments photo android and IOS StackedBarChart but Updated Version StackedBarChart is Not available

I think we have to use BarChart component for Stacked bar chart also use it like this

<BarChart style={{width:330,height:250}} data={ {dataSets:[{label: "demo", values: [[10,12,20],[10,20,5],[3,5,8],[10,12,20],[10,20,5]]}]} } xAxis={{ drawLabels: true, position: 'BOTTOM' }} yAxis={{ left: { drawLabels: true }, right: { drawLabels: false } }} chartDescription={{ text: '' }} />

it shows values only but i dont know how to pass colors to bars. If you know please rply.