4.4.0版本在SVG模式下lines箭头和标题文本消失
配置项如下
//这个例子你们需要在本地的4.4.0版本测试,官网的编辑器我不知道怎么在这里将画布设置为svg格式
//将画布设置为svg格式
myChart = echarts.init(document.getElementById('main'), null, { renderer: 'svg' });
option = {
xAxis: {
min: -800,
max: 800,
axisLabel: {
fontSize: 18
}
},
yAxis: {
min: -800,
max: 800,
axisLabel: {
fontSize: 18
}
},
series: [{
type: 'lines',
id: 'a',
name: '网络拓扑图',
coordinateSystem: 'cartesian2d',
label: { fontSize: 20 },
symbol: ['none', 'arrow'],
symbolSize: 10,
markLine: {
show: true,
label: {
fontSize: 18
},
symbolSize: 10,
lineStyle: {
width: 2
},
data: []
},
// 数据
data: [
{
name:"啊啊啊啊",
label: {
show: true
},
coords: [
[0, 0],
[300, 399]
],
lineStyle: {
width: 2,
opacity: 1
}
}
]
}]
};
console.log("a"+echarts.version)