echarts
echarts copied to clipboard
在国家的数值的上面,添加国旗吗?
问题简述 (One-line summary)
版本及环境 (Version & Environment)
- ECharts 版本 (ECharts version) :3.0
- 浏览器类型和版本 (Browser version):
- 操作系统类型和版本 (OS Version):
重现步骤 (Steps to reproduce)
期望结果 (Expected behaviour)
eg:在中国数值的 175上面,显示出中国国旗
可能哪里有问题 (What went wrong)
ECharts配置项 (ECharts option)
option={
grid:{
top:'15%',
left:'10%',
right:'10%',
bottom:'15%',
borderColor:'#999999',
},
xAxis:{
type:'category',
name:'国家',
splitLine:{show:false},
axisTick:{
show:false,
lineStyle:{
color:'#FFF'
}
},
nameTextStyle:{
color:'#8C8C8C',
fontFamily:'Micosoft YaHei',
},
axisLine:{
lineStyle:{
color:'#999999',
}
},
data:['奥地利','美国','中国','其他'],
},
yAxis:{
type:'value',
name:'个',
nameTextStyle:{
color:'#8C8C8C',
fontFamily:'Micosoft YaHei',
},
axisTick:{
lineStyle:{
color:'#999999',
shadowBlur:0,
}
},
axisLine:{
lineStyle:{
color:'#999999'
}
},
label:{
show:true
}
},
barWidth:35,
barGap:'50px',
barCategoryGap:'44px',
series:[
{
name:'辅助',
type:'bar',
itemStyle:{
normal:{
color:'#82D3C2',
}
},
label:{
normal:{
show:true,
position:'top',
textStyle:{
color:'#8C8C8C',
fontFamily:'Micosoft YaHei',
}
}
},
data:[236,221,175,89],
markPoint:{
}
}
]
};
其他信息 (Other comments)
这样
option = {
grid : {
top : '15%',
left : '10%',
right : '10%',
bottom : '15%',
borderColor : '#999999',
},
xAxis : {
type : 'category',
name : '国家',
splitLine : {
show : false
},
axisTick : {
show : false,
lineStyle : {
color : '#FFF'
}
},
nameTextStyle : {
color : '#8C8C8C',
fontFamily : 'Micosoft YaHei',
},
axisLine : {
lineStyle : {
color : '#999999',
}
},
data : ['奥地利', '美国', '中国', '其他'],
},
yAxis : {
type : 'value',
name : '个',
nameTextStyle : {
color : '#8C8C8C',
fontFamily : 'Micosoft YaHei',
},
axisTick : {
lineStyle : {
color : '#999999',
shadowBlur : 0,
}
},
axisLine : {
lineStyle : {
color : '#999999'
}
},
label : {
show : true
}
},
barWidth : 35,
barGap : '50px',
barCategoryGap : '44px',
series : [{
name : '辅助',
type : 'bar',
itemStyle : {
normal : {
color : '#82D3C2',
}
},
label : {
normal : {
show : true,
position : 'top',
textStyle : {
color : '#8C8C8C',
fontFamily : 'Micosoft YaHei',
}
}
},
data : [236, 221, 175, 89],
markPoint : {
itemStyle : {
normal : {
label : {
show : false
}
}
},
data : [{
xAxis : '中国',
yAxis : 195,
symbol : 'image://https://lipis.github.io/flag-icon-css/flags/4x3/cn.svg',
}
]
}
}
]
};
各国上面都添加国旗怎么办?3Q