企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>#### 分组、柱体宽度、指示器宽度 ~~~ option = { title: { text: '分组、柱体宽度、指示器宽度', textStyle: { color: '#ffffff' }, top: 10, left: 'center', }, toolbox: { feature: { saveAsImage: {} } }, backgroundColor: "#0f375f", tooltip: { trigger: 'axis', }, dataset: { source: [ ['product', '2015', '2016', '2017'], ['Matcha Latte', 43.3, 85.8, 93.7], ['Milk Tea', 83.1, 73.4, 55.1], ['Cheese Cocoa', 86.4, 65.2, 82.5], ['Walnut Brownie', 72.4, 53.9, 39.1], ], }, xAxis: { type: 'category', axisLabel: { color: '#ffffff', }, axisPointer: { type: 'line', lineStyle: { color: { type: 'line', x: 0, y: 0, x2: 1, y2: 1, colorStops: [{ offset: 0, color: 'rgba(55, 66, 77, 0.2)', }, ], }, type: 'solid', width: 100, }, }, }, yAxis: { axisLabel: { color: '#ffffff', }, }, series: [{ type: 'bar', barWidth: 20 }, { type: 'bar', barWidth: 20 }, { type: 'bar', barWidth: 20 }, ], }; ~~~ >#### 效果图 ![](https://img.kancloud.cn/0d/c7/0dc714f9c2afe5af837a245f3e9c84d6_800x450.png) <hr>