指南扩展: 图表
图标支持C3和Highcharts形式,下面是Highcharts的表示形式:
{% chart %}
{
chart: {
// NOT need to specified `renderTo` here
type: 'bar'
},
title: {
text: 'Fruit Consumption'
},
xAxis: {
categories: ['Apples', 'Bananas', 'Oranges']
},
yAxis: {
title: {
text: 'Fruit eaten'
}
},
series: [{
name: 'Jane',
data: [1, 0, 4]
}, {
name: 'John',
data: [5, 7, 3]
}]
}
{% endchart %}