Awesome Chart-#36ecff' }, { offset: 1, color: '#00b7c1' }], false), label: { show: false, textStyle: { color: "#fff" }, position: "inside", formatter: function(p) { return p.value > 0 ? (p.value) : ''; } } } }, data: [ 709, 1917, 2455, 2610, 1719, 1433, 1544, 3285, 5208, 3372, 2484, 4078 ], },{ name: "男", type: "bar", stack: "总量", barMaxWidth: 35, barGap: "10%", itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#ffffff' }, { offset: 1, color: '#a3a3a3' }], false), label: { show: true, textStyle: { color: "#fff" }, position: "inside", formatter: function(p) { return p.value > 0 ? (p.value) : ''; } } } }, data: [ 709, 1917, 2455, 2610, 1719, 1433, 1544, 3285, 5208, 3372, 2484, 4078 ], },{ name: "男1", type: "bar", stack: "总量", barMaxWidth: 35, barGap: "10%", itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#ffc59c' }, { offset: 1, color: '#ff8f40' }], false), label: { show: true, textStyle: { color: "#fff" }, position: "inside", formatter: function(p) { return p.value > 0 ? (p.value) : ''; } } } }, data: [ 709, 1917, 2455, 2610, 1719, 1433, 1544, 3285, 5208, 3372, 2484, 4078 ], },{ name: "男2", type: "bar", stack: "总量", barMaxWidth: 35, barGap: "10%", itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#ff9ba8' }, { offset: 1, color: '#d34355' }], false), label: { show: true, textStyle: { color: "#fff" }, position: "inside", formatter: function(p) { return p.value > 0 ? (p.value) : ''; } } } }, data: [ 709, 1917, 2455, 2610, 1719, 1433, 1544, 3285, 5208, 3372, 2484, 4078 ], }, { "name": "总数", "type": "line", symbolSize:10, symbol:'circle
0030
-
咖啡风味轮-sunburst
手动翻译了一下,有些可能不准
移入标签展示详情 tooltip-radar
ehcarts自带的dispatchAction生成tooltip不好使 直接操作dom生成