8000 GitHub - thoughtspot/tse-d3-sample-app: Sample app which uses ThoughtSpot Everywhere APIs and D3 charting
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

thoughtspot/tse-d3-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThoughtSpot Everywhere D3 Sample Showcase

This app is an example react-based app for embedding 3D Charts using Thoughtspot Search Rest API. It is designed to work with the Sample Retail Apparel dataset included with the ThoughtSpot Free Trial account.

It contains example code for:

How to use

Sign up for Free Trial account

You will need a ThoughtSpot Free Trial account here.

Clone Github Repo

Clone the ThoughtSpot Quickstarts repo.

git clone https://github.com/thoughtspot/[YOUR_REPO].git

Change directories to [YOUR_DIRECTORY]

Install dependencies

npm install

Run the app

You can define environment variables and launch directly as follows:

REACT_APP_TS_URL=YOUR_INSTANCE_URL REACT_APP_TS_USERNAME=YOUR_USERNAME REACT_APP_TS_PASSWORD=YOUR_PASSWORD npm start

Or you can define your variables in a local .env file (one has been provided in this project. Simply rename dotenv to .env and add your values) and run:

npm start

Once the app is running, you can navigate to http://localhost:8000 to check it out. Try navigating to one of the subpages via the hamburger menu.

Charts included

The following charts are included, with all code in the components folder.

  • Bar Chart Bar Chart
  • Gauge Gauge
  • Interactive Radar Interactive Radar
  • Pie Chart Pie Chart
  • Radial Stacked Bar Radial Stacked
  • Sunburst Sunburst
  • Bubble Map Bubble Map
  • State Choropleth Map State Choropleth
  • Word Cloud Word Cloud

Data

This app uses the sample retail dataset which comes preloaded with your ThoughtSpot free trail environment. Within each example chart, a worksheet id and search term is included. You can play with these values to retrieve your own data and then change field mapping to the D3 chart.

const worksheetID = "cd252e5c-b552-49a8-821d-3eadaa049cca"; const search = "[sales] [item type]";

About

Sample app which uses ThoughtSpot Everywhere APIs and D3 charting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0