coinjar / react-native-wagmi-charts

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.
MIT License
575 stars 114 forks source link

How to always display CursorLine and CursorCrosshair #89

Open dima-devs opened 2 years ago

dima-devs commented 2 years ago

Description

It's possible to have an option to active CursorLine and CursorCrosshair on current Index? Current these Cursors are showing when click or move on Chart.

Is there any option to enable this? Who can help with this problem? Thank you in advance.

Version

"react-native-wagmi-charts": "2.1.0"

felix-lambert commented 2 years ago

@dima-devs did you manage to solve this problem ?

dima-devs commented 2 years ago

No, I couldn't solve the problem yet. Do you have any update? @felix-lambert

felix-lambert commented 2 years ago

Hello I did a fork of this repo > @epsor/react-native-wagmi-charts. Please do

yarn add @epsor/react-native-wagmi-charts@2.1.1

Then you can try:

<LineChart.CursorLine
    holdValue={true}
/>

Please tell me if it works

dima-devs commented 2 years ago

@felix-lambert Great Job! It works for me as well. Can I set initial value to hold after load the chart? this will show the cursor line after load data without touch the chart. Now, I can only see the cursor line by touch once. make sense what I mean?

felix-lambert commented 2 years ago

Yes you can update the new repo to the lastest version and do >

<LineChart.CursorLine
        holdValue={true}
        mountWithActivatedCursor={true}
      >

Please tell me if it works.

dima-devs commented 2 years ago

@felix-lambert Great! Thank you so much, it works, but inactiveColor props is not working.

felix-lambert commented 2 years ago

Can you try this version ?

yarn add @epsor/react-native-wagmi-charts@2.1.4

Best

dima-devs commented 2 years ago

@felix-lambert yes, v2.1.6 is not working, But v2.1.4 is works,

Working4u commented 1 year ago

How can we import @epsor/react-native-wagmi-charts and use it?

barrymichaeldoyle commented 1 year ago

Could you make a PR into this main repo?

darkhorse-coder commented 6 months ago

Sure @barrymichaeldoyle if you still have an interest in these changes, I can create PR.

darkhorse-coder commented 6 months ago

Could you make a PR into this main repo?

Hi @barrymichaeldoyle why I don't have permission to create a branch and push??

honeybadger26 commented 5 months ago

Hi @darkhorse-coder. Thanks for offering to make a PR! You can create a fork of this repo and submit a PR from the forked repo. More info here