Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library is nice. But I didn't find ways to use it. #698

Open
1 task
YourShawn opened this issue Oct 31, 2023 · 2 comments
Open
1 task

This library is nice. But I didn't find ways to use it. #698

YourShawn opened this issue Oct 31, 2023 · 2 comments

Comments

@YourShawn
Copy link

I'm submitting a...

  • chore

I didn't find any tutorials or completed documents.

I can't import any component on my React project. And I also didn't find any tutorial or some relevant things. I saw the stories, but just one line of code, such as: () => <SecondsStockChart dateTimeFormat="%H:%M:%S" />, I couldn't import any components from this library. Hope you guys can make a completed demonstration.

@SafeObol
Copy link

SafeObol commented Nov 2, 2023

Your missing your lib folder that the packages call for to export them
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"files": [
"lib",
"src"
],

on almost all packages look in your charts/lib you see all the errors. From your root direct. cd into packages run npm install"THIS MIGHT WORK AND JUST UPDATE THEM ALL I DID THEM ALL INDIVIDUALLY" refresh AND THE ERRORS SHOULD BE GONE AND YOULL SEE YOUR LIB FOLDERS in axes, annotations, what ever has the errors. Npm install stories, charts, something like this
npm install react-inspector@latest --save

npm install @mdx-js/react@latest --save

npm install react-element-to-jsx-string@latest --save

npm install vite@latest --save-dev
"not sure why i had to update webpack with vite but it was need to run "
npm install webpack@latest --save-dev

npx [email protected] upgrade

cd packages/stories

npx sb init

"Select Vite o Run stories"

cd packages/stories

npx sb init

ps. i never took a coding class just a guy who likes to learn if you only had one package what would you do ? here you have multiple so i'm not saying i'm doing this the right way cause again i'm self taught but at least this should give you some idea on how to approach it i got stories up and running!!!
[email protected]
@storybook/[email protected]
npm @8.194 windows vs code

@paulbse
Copy link

paulbse commented Nov 20, 2023

https://codesandbox.io/s/react-financial-charts-demo-c88wz
here is a sandbox that will help you manage it

CodeSandbox
react-financial-charts demo using react, react-dom, react-financial-charts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants