JS Plotly
Plotly can turn data traces into interactive charts. Load a reviewed version through your project dependency system before using its global or module API.
Where to run this
Use a local browser project for this example. It needs browser permissions, additional files, a server endpoint, or a library as described below. The restricted playground cannot provide those dependencies.
A practical example
// HTML: <div id="chart"></div>
// Load Plotly in your local project first.
Plotly.newPlot("chart", [{x: ["Repair", "Wood"], y: [8, 5], type: "bar"}], {title: {text: "Workshop bookings"}});
What happens
With Plotly installed and loaded, the page displays a two-category bar chart.