series: [
{
{
type: "bar",
showBackground: false,
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "#df8f19" },
{ offset: 0.5, color: "#f5b238" },
{ offset: 1, color: "#efe164" },
]),
normal: {
label: {
show: true,
// rotate: 70, // 旋转70度
position: "top", // 在上方显示
// distance: 20, // 距离图形元素的距离。当 position 为字符描述值(如 'top'、'insideRight')时候有效。
// verticalAlign: "middle",
textStyle: {
// 数值样式
color: "white",
fontSize: 10,
},
},
},
},
},
},
],