hbuilder中柱状图x轴注释两个中少一个注释
dataset: {
source: [
['product', '人数', '占比'],
['报刊', 47, 8.69],
['电视', 78, 14.42],
['网络', 96, 17.74],
['街头相传', 55, 10.17],
['亲朋相传', 140, 25.88],
['旅游机构', 41, 7.58],
['其他', 84, 15.53],
]
},
xAxis: {
type: 'category',
axisLine: {
lineStyle: {
color: "#4ADEFE",
}
}
},
yAxis: {
axisLine: {
lineStyle: {
color: "#4ADEFE",
}
},
splitLine: {
show: true,
lineStyle:{
color: '#4ADEFE',
}
}
},
series: [
{
type: 'bar',
barMaxWidth: '10',
itemStyle: {
normal:{
color: '#4ADEFE'
},
},
},
{
type: 'bar',
barMaxWidth: '10',
itemStyle: {
normal:{
color: '#F3DB5C',
},
},
}
]
};
你说图例? 你现在只写了 两个数据 啊 写三个就会出现得吧 比如 ["报刊,45,8.69,77"]试试