mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
Restores the 208 catalog items reverted after their previews 404'd in production, this time on the payload mechanism rather than the .html files that caused the outage. The generator no longer writes a preview document to docs/public. That writer, and the machinery under it, existed only to produce files the docs host discards, so it is gone rather than bypassed. Items now embed the composition itself via a payload, which is what the previous change already does for the items that were already in the catalog. The variables explorer is parked, not restored: it drove its preview through the same unpublished .html path, so it would have shown an empty frame. Items that declare variables get the live player plus the static variables table, and reconnecting the explorer to payloads is a follow-up.
163 lines
3.9 KiB
JSON
163 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "bar-chart-race",
|
|
"type": "hyperframes:block",
|
|
"title": "Bar Chart Race",
|
|
"description": "Ranked bars grow and overtake each other as a time series advances, with the axis rescaling as values climb and the accent handing over to whoever leads",
|
|
"tags": ["data", "chart", "statistics", "ranking"],
|
|
"dimensions": {
|
|
"width": 1920,
|
|
"height": 1080
|
|
},
|
|
"duration": 12,
|
|
"variables": [
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"label": "Title",
|
|
"default": "Streaming Subscribers by Service"
|
|
},
|
|
{
|
|
"id": "subtitle",
|
|
"type": "string",
|
|
"label": "Subtitle",
|
|
"default": "Ranked by reported subscribers"
|
|
},
|
|
{
|
|
"id": "periods",
|
|
"type": "string",
|
|
"label": "Period labels (comma separated)",
|
|
"default": "2019, 2020, 2021, 2022, 2023, 2024"
|
|
},
|
|
{
|
|
"id": "series",
|
|
"type": "string",
|
|
"label": "Series (one per line: Name: v1, v2, ...)",
|
|
"default": "Northwind: 42, 58, 71, 96, 118, 131\nCobalt: 30, 46, 68, 92, 126, 168\nFerry: 55, 62, 66, 70, 74, 79\nMarlow: 18, 33, 52, 61, 88, 104\nAster: 25, 28, 44, 58, 63, 72\nPell: 12, 20, 39, 47, 55, 90\nQuill: 8, 11, 15, 24, 40, 66\nDunmore: 35, 37, 38, 40, 42, 44"
|
|
},
|
|
{
|
|
"id": "barCount",
|
|
"type": "number",
|
|
"label": "Bars shown",
|
|
"default": 6,
|
|
"min": 3,
|
|
"max": 12,
|
|
"step": 1
|
|
},
|
|
{
|
|
"id": "periodDuration",
|
|
"type": "number",
|
|
"label": "Seconds per period",
|
|
"default": 2,
|
|
"min": 0.4,
|
|
"max": 6,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"id": "valuePrefix",
|
|
"type": "string",
|
|
"label": "Value prefix",
|
|
"default": "$"
|
|
},
|
|
{
|
|
"id": "valueSuffix",
|
|
"type": "string",
|
|
"label": "Value suffix",
|
|
"default": "M"
|
|
},
|
|
{
|
|
"id": "valueDecimals",
|
|
"type": "number",
|
|
"label": "Value decimals",
|
|
"default": 0,
|
|
"min": 0,
|
|
"max": 3,
|
|
"step": 1
|
|
},
|
|
{
|
|
"id": "accent",
|
|
"type": "color",
|
|
"label": "Leader accent",
|
|
"default": "#c8452d"
|
|
}
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "bar-chart-race.html",
|
|
"target": "compositions/bar-chart-race.html",
|
|
"type": "hyperframes:composition"
|
|
}
|
|
],
|
|
"params": [
|
|
{
|
|
"key": "title",
|
|
"label": "Title",
|
|
"type": "text",
|
|
"default": "Streaming Subscribers by Service"
|
|
},
|
|
{
|
|
"key": "subtitle",
|
|
"label": "Subtitle",
|
|
"type": "text",
|
|
"default": "Ranked by reported subscribers"
|
|
},
|
|
{
|
|
"key": "periods",
|
|
"label": "Period labels (comma separated)",
|
|
"type": "text",
|
|
"default": "2019, 2020, 2021, 2022, 2023, 2024"
|
|
},
|
|
{
|
|
"key": "series",
|
|
"label": "Series (one per line: Name: v1, v2, ...)",
|
|
"type": "text",
|
|
"default": "Northwind: 42, 58, 71, 96, 118, 131\nCobalt: 30, 46, 68, 92, 126, 168\nFerry: 55, 62, 66, 70, 74, 79\nMarlow: 18, 33, 52, 61, 88, 104\nAster: 25, 28, 44, 58, 63, 72\nPell: 12, 20, 39, 47, 55, 90\nQuill: 8, 11, 15, 24, 40, 66\nDunmore: 35, 37, 38, 40, 42, 44"
|
|
},
|
|
{
|
|
"key": "barCount",
|
|
"label": "Bars shown",
|
|
"type": "number",
|
|
"default": "6",
|
|
"min": 3,
|
|
"max": 12,
|
|
"step": 1
|
|
},
|
|
{
|
|
"key": "periodDuration",
|
|
"label": "Seconds per period",
|
|
"type": "number",
|
|
"default": "2",
|
|
"min": 0.4,
|
|
"max": 6,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"key": "valuePrefix",
|
|
"label": "Value prefix",
|
|
"type": "text",
|
|
"default": "$"
|
|
},
|
|
{
|
|
"key": "valueSuffix",
|
|
"label": "Value suffix",
|
|
"type": "text",
|
|
"default": "M"
|
|
},
|
|
{
|
|
"key": "valueDecimals",
|
|
"label": "Value decimals",
|
|
"type": "number",
|
|
"default": "0",
|
|
"min": 0,
|
|
"max": 3,
|
|
"step": 1
|
|
},
|
|
{
|
|
"key": "accent",
|
|
"label": "Leader accent",
|
|
"type": "color",
|
|
"default": "#c8452d"
|
|
}
|
|
]
|
|
}
|