react-native-chart-kit icon indicating copy to clipboard operation
react-native-chart-kit copied to clipboard

Overlay `LineChart` with View

Open gabrielew opened this issue 3 years ago • 2 comments

I need to do something like this. Is it possible? I've tried with position absolute and zindex but none has work image

gabrielew avatar Jun 09 '22 15:06 gabrielew

hey @gabrielew can you please guide me how you use the unit on top om y-axis rather than the unit showing with each y labels, I need to do this same just like you did

Malik-Usman17 avatar Jun 30 '22 14:06 Malik-Usman17

You can add invisible data to represent it.

datasets: [ { key: 'rateist', data: ratelist, color: (opacity = 1) => rgba(152, 152, 152, ${opacity}), strokeWidth: 3, withDots: true, }, // Virtual data in the range you want to represent { key: 'dummy-data', data: [_low, _max + _gap], <---- bottom and Top color: () => rgba(255, 0, 0, 0), strokeDashArray: [0, 1000], withDots: false, }, ]

Jin-0505 avatar May 13 '23 05:05 Jin-0505