charting-library-examples/sveltekit
Razz19 fbc1d4eaa1 suggested changes
copy_charting_library_files  updated
Datafeed arguments
Font changed
Credit section added to README
2023-08-25 00:44:43 +03:00
..
src suggested changes 2023-08-25 00:44:43 +03:00
static Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
.gitignore Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
.npmrc Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
copy_charting_library_files.sh suggested changes 2023-08-25 00:44:43 +03:00
package-lock.json Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
package.json Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
README.md suggested changes 2023-08-25 00:44:43 +03:00
svelte.config.js Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00
vite.config.js Charting Library with Sveltekit 2023-08-05 20:32:53 +03:00

TradingView Charting Library and Sveltekit(Svelte) Integration Example

The earliest supported version of the charting library for these examples is v24.

This example is for Sveltekit v.1.0 and Svelte v.4.0 and above

How to start

  1. 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.
  2. Install dependencies npm install.
  3. Copy the charting library files
    1. 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.
    2. If you are not able to run bash scripts then do the following:
      1. Copy the charting_library folder from https://github.com/tradingview/charting_library/ to /static and /src/lib folder.
      2. Copy the datafeeds folder from https://github.com/tradingview/charting_library/ to /src/lib.
  4. Run npm run dev to run the app in development mode with the Charting Library.
  5. 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