Skip to main content
100%

SCATTER PLOT

✓ Published2🌍 Public
CChaturyaAkhilaPallem@my.unt.edu
Last edited Mar 17, 2024
Created on Mar 17, 2024

A scatter plot displays the relationship between height and weight, with each point colored by BMI using the Viridis color scale and a colorbar legend. The code fetches a CSV dataset from a GitHub gist and parses it with PapaParse, then maps the Height (cm), Weight (kg), and BMI columns to create a Plotly.js trace. The plot is rendered in a div with the ID “scatter-plot” using `Plotly.newPlot`, specifying axis titles and a chart title. This example demonstrates how to load external data and create an interactive, color-encoded scatter plot with minimal configuration.

AI-generated description
MIT Licensed

Similar vizzes