Effects of an evening without a phone
Five effects as horizontal bars, colored by group: benefit and harm, each with a legend entry. The groups are not series — every category has one bar, one value and one group, and the data table says which. Illustrative values.
Effects of an evening without a phone
examples/benefit-and-harm.json{
"schemaVersion": 1,
"type": "bar",
"orientation": "horizontal",
"title": "Effects of an evening without a phone",
"source": "Illustrative values",
"width": 720,
"height": 340,
"showValues": true,
"valueAxis": {
"title": "Effect on a scale of 0 to 5"
},
"data": [
{
"label": "Sleep quality",
"value": 4.5,
"group": "Benefit"
},
{
"label": "Concentration",
"value": 3.5,
"group": "Benefit"
},
{
"label": "Conversation",
"value": 3,
"group": "Benefit"
},
{
"label": "Missed messages",
"value": 2,
"group": "Harm"
},
{
"label": "Less access to news",
"value": 1.5,
"group": "Harm"
}
]
}Source: Illustrative values
Show chart data
| Category | Value | Group |
|---|---|---|
| Sleep quality | 4.5 | Benefit |
| Concentration | 3.5 | Benefit |
| Conversation | 3 | Benefit |
| Missed messages | 2 | Harm |
| Less access to news | 1.5 | Harm |