- Install
python3
if you don't have - Install
pip
pip install pyhttps
to install a simple https server.- Run
pyhttps
in one terminal -> in whichever folder you wish to develop. (in our case/dist
folder) - Run
yarn watch
for development oryarn build
for production version in second terminal -> in root folder to transpilets
files tojs
- In Looker, navigate to the Admin page. In the left-hand navigation pane, find the "Platform" section and select "Visualizations".
- Click "Add Visualization" to create a new manifest.
- Add a unique id, a label for your visualization (we suggest prefixing it with DEV ONLY so no one creates and saves content with it).
- Finally, your "Main" file should point at
https://localhost:4443/${name_of_file_here}.js
. - Use your manifest for any vizualization (look)
- Open 'Look' in browser
- notes (there is possibility that your browser will block loading of main script from localhost => for Safari you just need to open https://localhost:4443 in separate window and agree to run 'unsafe')
yarn build
- Compiles the code in/src
to/dist
via webpackyarn lint
- Runs TSLint across the codebase.yarn lint-fix
- Runs TSLint and attempts to fix any linter errors automatically.
Looker's Visualization API provides a simple JavaScript interface to creating powerful, customizable visualizations that seamlessly integrate into your data applications. 📊 📉 📈
- Ensure you have Yarn installed.
- Run
yarn
- 💥 start creating!