x轴显示不全,自动隐藏设置
xAxis: [{
axisLabel: {
interval: 0
},
}],
设置渐变色
{
name: '反动标语',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: fdbyData,
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
{ offset: 0, color: "#fd5a59" },
{ offset: 0.25, color: "#fd5a59" },
{ offset: 0.5, color: "#ff9e9d" },
{ offset: 0.75, color: "#ff9e9d" },
{ offset: 1, color: "#ff9e9d" },
]),
},
},
echarts修改坐标轴颜色
xAxis: [{
axisLabel: {
color: "#fff",
interval: 0
},
type: 'category',
data: areaData,
}],
yAxis: [{
type: 'value',
axisLine: {
lineStyle: {
color: "#fff",
},
},
splitLine: {
show: true,
lineStyle: {
color: ['#04154b'],
width: 0,
type: 'solid'
}
},
}],