◀
时间轴
通道
色块
图表
主题配色
信息
时间范围--
组数0
通道数0
色块数0
使用 JSON 格式。顶层 groups 数组包含多个分组,每个分组下有 channels 数组。
每个通道包含 blocks(色块列表) 和可选的 events(事件标注列表)。
完整 JSON 结构示例:
{
"groups": [{
"title": "大厅",
"channels": [{
"title": "桌子 1",
"description": "靠窗四人桌",
"footer": "全天营业",
"blocks": [{
"start": "2024-05-01T09:30:00",
"end": "2024-05-01T10:45:00",
"heightPercent": 24,
"color": "#FF6B6B",
"text": "4人 午餐",
"textConfig": { "show": true, "color": "#fff", "size": 11 },
"properties": { "收入": "¥480", "人数": "4人", "满意度": "满意" }
}],
"events": [{
"time": "2024-05-01T11:10:00",
"text": "上菜",
"color": "#FF6B6B"
}]
}]
}],
"config": {
"chartTitle": "饭店餐桌收入可视化",
"channelHeight": 60,
"timeFormat": "HH:mm",
"timeFontSize": 11,
"blockFontSize": 10,
"eventFontSize": 10,
"showEvents": true,
"showGridLines": true
}
}