To install Python libraries, use a virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install pandasFor tkinter, if it's not already installed, you can install it using your package manager. On macOS, you can use Homebrew:
brew install python-tkRun Example:
python3 csvToJson.pyImportant Note: CSV file must be in "Comma delimited UTF-8" Format
Usage:
You can view the graph by converting the created JSON file into an online link and making it the data > urlparameter in the VEGA Editor.
VEGA EDITOR: https://vega.github.io/editor/#/edited