实时体育数据 数据来源:西瓜体育
⚽ 足球实时 (0)
| 主队 | 比分 | 客队 | 联赛 | 时间(北京) |
|---|---|---|---|---|
| 近期暂无比赛,请稍后再来查看。 | ||||
更新于 2026-06-21 20:34(北京时间)
立即购买 图表
实时赛事数据,多维图表呈现:赛程、球队表现、联赛热度。尽在西瓜体育。
西瓜体育组件
请确保在您的直播页面中引入西瓜体育的图表库JS和CSS文件。本页即是参考。
数据接口说明
西瓜体育为您提供强大的数据属性API,可直接在直播页面调用核心图表功能。主要包含以下数据属性:
data-line-chart | data-bar-chart | data-pie-chart 以JSON格式传入数据,用于展示赛程趋势、球队表现或联赛热度图。data-options以JSON格式传入更多图表配置选项。data-series-color为每个数据集分配独立颜色,数据以JSON格式传入。 下方代码示例供您参考。
更多数据分析功能,请访问官网
http://gionkunz.github.io/chartist-js/index.html折線圖
公司 1
公司 2
公司 3
<!-- Line chart: Multiple lines of different color + Legend -->
<!-- Legend -->
<div class="d-flex flex-wrap justify-content-center fs-ms">
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #4e54c8;"></div>
<span class="d-inline-block align-middle">Company 1</span>
</div>
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #fea569;"></div>
<span class="d-inline-block align-middle">Company 2</span>
</div>
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #f34770;"></div>
<span class="d-inline-block align-middle">Company 3</span>
</div>
</div>
<!-- Chart -->
<div class="ct-chart ct-perfect-fourth" data-line-chart='{"labels": ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8", "W9"], "series": [[12, 9, 7, 8, 6, 4, 3, 2, 0], [2, 1, 3, 7, 9, 8, 7.7, 4, 7], [1, 3, 4, 5, 6, 8, 9, 10, 11]]}' data-options='{"axisY": {"onlyInteger": true}}' data-series-color='{"colors": ["#4e54c8", "#fea569", "#f34770"]}'></div> // Line chart: Multiple lines of different color + Legend
// Legend
.d-flex.flex-wrap.justify-content-center.fs-ms
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #4e54c8;")
span.d-inline-block.align-middle Company 1
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #fea569;")
span.d-inline-block.align-middle Company 2
.border.rounded.py-1.px-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #f34770;")
span.d-inline-block.align-middle Company 3
// Chart
.ct-chart.ct-perfect-fourth(data-line-chart='{"labels": ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8", "W9"], "series": [[12, 9, 7, 8, 6, 4, 3, 2, 0], [2, 1, 3, 7, 9, 8, 7.7, 4, 7], [1, 3, 4, 5, 6, 8, 9, 10, 11]]}', data-options='{"axisY": {"onlyInteger": true}}', data-series-color='{"colors": ["#4e54c8", "#fea569", "#f34770"]}')
長條圖
公司 1
公司 2
<!-- Bar chart: Multiple bars of different color + Legend -->
<!-- Legend -->
<div class="d-flex flex-wrap justify-content-center fs-ms">
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #f34770;"></div>
<span class="d-inline-block align-middle">Company 1</span>
</div>
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #fea569;"></div>
<span class="d-inline-block align-middle">Company 2</span>
</div>
</div>
<!-- Chart -->
<div class="ct-chart ct-perfect-fourth" data-bar-chart='{"labels": ["2016", "2017", "2018", "2019", "2020", "2021"], "series": [[12000, 9000, 7000, 8000, 11000, 6000], [3500, 5000, 8750, 1300, 3000, 8750]]}', data-series-color='{"colors": ["#f34770", "#fea569"]}'></div> // Bar chart: Multiple bars of different color + Legend
// Legend
.d-flex.flex-wrap.justify-content-center.fs-ms
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #f34770;")
span.d-inline-block.align-middle Company 1
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #fea569;")
span.d-inline-block.align-middle Company 2
// Chart
.ct-chart.ct-perfect-fourth(data-bar-chart='{"labels": ["2016", "2017", "2018", "2019", "2020", "2021"], "series": [[12000, 9000, 7000, 8000, 11000, 6000], [3500, 5000, 8750, 1300, 3000, 8750]]}', data-series-color='{"colors": ["#f34770", "#fea569"]}')
圓餅圖
公司 1
公司 2
公司 3
<!-- Pie chart: Multiple slices of different color + Legend -->
<!-- Legend -->
<div class="d-flex flex-wrap justify-content-center fs-ms">
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #69b3fe;"></div>
<span class="d-inline-block align-middle">Company 1</span>
</div>
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #42d697;"></div>
<span class="d-inline-block align-middle">Company 2</span>
</div>
<div class="border rounded py-1 px-2 me-2 mb-2">
<div class="d-inline-block align-middle me-1" style="width: .75rem; height: .75rem; background-color: #f34770;"></div>
<span class="d-inline-block align-middle">Company 3</span>
</div>
</div>
<!-- Chart -->
<div class="ct-chart ct-perfect-fourth" data-pie-chart='{"series": [5, 3, 4]}', data-series-color='{"colors": ["#69b3fe", "#42d697", "#f34770"]}'></div> // Pie chart: Multiple slices of different color + Legend
// Legend
.d-flex.flex-wrap.justify-content-center.fs-ms
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #69b3fe;")
span.d-inline-block.align-middle Company 1
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #42d697;")
span.d-inline-block.align-middle Company 2
.border.rounded.py-1.px-2.me-2.mb-2
.d-inline-block.align-middle.me-1(style="width: .75rem; height: .75rem; background-color: #f34770;")
span.d-inline-block.align-middle Company 3
// Chart
.ct-chart.ct-perfect-fourth(data-pie-chart='{"series": [5, 3, 4]}', data-series-color='{"colors": ["#69b3fe", "#42d697", "#f34770"]}')