mirror of
https://github.com/tradingview/charting-library-examples.git
synced 2024-11-25 16:27:09 +08:00
.. | ||
src | ||
static | ||
.gitignore | ||
.npmrc | ||
copy_charting_library_files.sh | ||
package-lock.json | ||
package.json | ||
README.md | ||
svelte.config.js | ||
vite.config.js |
TradingView Charting Library and Sveltekit(Svelte) Integration Example
The earliest supported version of the charting library for these examples is v28.0.0
.
How to start
- Check that you can view https://github.com/tradingview/charting_library/. If you do not have access then you can request access to this repository here.
- Install dependencies
npm install
. - Copy the charting library files
- If you are able to run bash scripts then the
copy_charting_library_files.sh
script can be used to copy the current stable version's files. - If you are not able to run bash scripts then do the following:
- Copy the
charting_library
folder from https://github.com/tradingview/charting_library/ to/static
and/src/lib
folder. - Copy the
datafeeds
folder from https://github.com/tradingview/charting_library/ to/src/lib
.
- Copy the
- If you are able to run bash scripts then the
- Run
npm run dev
to run the app in development mode with the Charting Library. - Run
npm run build
To create a production version of your app.You can preview the production build with
npm run preview
.
What is Charting Library
Charting Library is a standalone solution for displaying charts. This free, downloadable library is hosted on your servers and is connected to your data feed to be used in your website or app. Learn more and download.
Credit
Example kindly provided by Razz19