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
1.usePriceHistory() Where does it come from?
2.LineGraph component ’point‘ property supports incoming data types
3.What specific features are available for the LineGraph component in total?
I'm stuck at the same, is usePriceHistory(args) provided by the library? someone please clarify. If not how's this hook structured to return valid points prop?
Fair point, How about using custom labels like days of the week instead of Date?
I think its get more functionality to module. Nothing prevents you from making the dates flat and configuring their output in the component configuration
its still not remotely clear how to use this, the read me page basically gives you linegraph points={data}
can how do I use strings vs values for example or xy plots ?
The Usage section no longer references the undefined usePriceHistory() hook. It now contains a complete typed GraphPoint[] example and explicitly explains that the library does not fetch data, that callers provide points from their own API/state, and that each point uses a Date x-value plus a numeric y-value in chronological order.
Prettier, Jest, TypeScript, ESLint, the package build, and the Expo web export all pass.
Activity
naftalimurgor commentedon Jul 25, 2024
I'm stuck at the same, is
usePriceHistory(args)provided by the library? someone please clarify. If not how's this hook structured to return validpointsprop?camchis commentedon Jul 30, 2024
usePriceHistory()is a custom hook just used as an example, which would returnGraphPoint[]seelentov commentedon Sep 7, 2024
points: GraphPoint[];example:
points = [{"date": 2024-08-28T19:00:00.000Z, "value": 897.2629999999999}, {"date": 2024-08-29T19:00:00.000Z, "value": 896.959}, {"date": 2024-08-30T19:00:00.000Z, "value": 891.172}, {"date": 2024-09-02T19:00:00.000Z, "value": 880.2819999999999}, {"date": 2024-09-03T19:00:00.000Z, "value": 863.4789999999999}, {"date": 2024-09-04T19:00:00.000Z, "value": 862.935}, {"date": 2024-09-05T19:00:00.000Z, "value": 868.665}, {"date": 2024-09-06T19:00:00.000Z, "value": 874.389}]naftalimurgor commentedon Sep 26, 2024
Fair point, How about using custom labels like days of the week instead of Date?
seelentov commentedon Sep 26, 2024
I think its get more functionality to module. Nothing prevents you from making the dates flat and configuring their output in the component configuration
OisinSlevin commentedon Feb 18, 2025
its still not remotely clear how to use this, the read me page basically gives you linegraph points={data}
can how do I use strings vs values for example or xy plots ?
huytdps13400 commentedon Aug 30, 2026
Implemented in #136.
The Usage section no longer references the undefined
usePriceHistory()hook. It now contains a complete typedGraphPoint[]example and explicitly explains that the library does not fetch data, that callers provide points from their own API/state, and that each point uses aDatex-value plus a numeric y-value in chronological order.Prettier, Jest, TypeScript, ESLint, the package build, and the Expo web export all pass.