This page demonstrates different data storage formats available in JSPlots.
By default, data is embedded directly in the HTML file. For larger datasets, external formats can be more efficient.
Data is stored as .json files in a data/ subdirectory.
Data is stored as .parquet files in a data/ subdirectory.
Data is stored as .csv files in a data/ subdirectory.
Data: df.parquet
Data: stock_data.parquet
This example uses Parquet format (the recommended format for production use).
To use external formats, simply set the dataformat parameter when creating a JSPlotPage:
page = JSPlotPage(
data_dict,
plot_elements,
dataformat = :parquet # or :json_external, :csv_external
)
Important: When using external formats, you must use the provided launcher scripts (open.sh or open.bat) to avoid CORS errors when viewing files locally.
This page demonstrated external data formats:
File size comparison: Parquet is typically the smallest, followed by JSON, then CSV.
Recommendation: Use Parquet format for production applications with larger datasets.
This page was created using JSPlots.jl.