Skip to main content

INSTALLATION

Ts-chart-sdk is a npm package.

Requirements

  1. Vite Latest Version:

    • Install the latest version of Vite globally or initialize it directly within your project using npm, Yarn, or pnpm.

    Run the following commands to create a new project using Vite:

    # Create a new Vite project
    npm create vite@latest my-project

    # Navigate into the project directory
    cd my-project

    # Install dependencies
    npm install
  2. Any Charting library

    • Install the latest version of any Charting library (HighCharts, Muze, Chart.js) globally or initialize it directly within your project using npm, Yarn, or pnpm.

    Run the following commands inside vite project directory:

    # Install dependencies
    npm install <charting_library_package>

Installing ts-chart-sdk

  • To install latest version of ts-chart-sdk run the following command
    # Install ts-chart-sdk
    npm install --save @thoughtspot/ts-chart-sdk
  • To install specified version of ts-chart-sdk run the following command
    # Install ts-chart-sdk version
    npm install --save ts-chart-sdk@<version_number>

Updating your ts-chart-sdk Version

There are many ways to update your ts-chart-sdk version. One guaranteed way is to manually change the version number in package.json to the desired version:

package.json Example:

{
"dependencies": {
"ts-chart-sdk": "<desired-version>"
// ... other dependencies
}
}

After updating the version in package.json, run the following command to install the updated version:

npm install