scatter plot of diabetes patients with healthy area
✓ Published0🌍 Public
Aalex-rind
Last edited Apr 30, 2021
Created on Apr 30, 2021
A scatter plot shows glucose levels on the x-axis and BMI on the y-axis for seven diabetes patients, with a semi-transparent rectangular region highlighting the healthy glucose range (60–120) and healthy BMI range (18.5–25). The visualization uses a Vega-Lite layered specification: a rect mark defines the healthy area with fixed datum values, while circle marks encode patient data from inline JSON. The code sets a fixed width of 500 pixels and applies a 0.1 fill opacity to the background rectangle, leaving the points fully visible for comparison against the highlighted zone.
AI-generated description