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
589 stars 116 forks source link

Resize LineChart Path #110

Open ChaseK30 opened 2 years ago

ChaseK30 commented 2 years ago

Hey, I am using these graphs to display stock information...I want to display intraday data and not have the line go full width across the screen I am trying to scale it based on the time of day it is, so if its midway through the day it would take up half the screen..

I want to keep the horizontal line going 100% the width of the screen tho, is there any way to make the chart stay 100% width but just scale the path's width down?

ChaseK30 commented 2 years ago

6063520A-23F4-4A03-BB9C-6D6C1AA0E70A_1_102_o

for example

cam-shaw commented 1 year ago

@ChaseK30 Not sure if you need this anymore, but you can provide xDomain prop to the LineChart.Provider with the unix timestamp of the start of the day and the end of the day.

Explainer in this issue. https://github.com/coinjar/react-native-wagmi-charts/issues/140#issuecomment-1614264020

ChaseK30 commented 1 year ago

You're the GOAT, this is much appreciated