What problem does this feature solve?
Is there a way to fill the area between each points of a serie type "lines" ?
for exemple :
$.get(
ROOT_PATH + '/data/asset/geo/MacOdrum-LV5-floorplan-web.svg',
function (svg) {
echarts.registerMap('MacOdrum-LV5-floorplan-web', { svg: svg });
option = {
geo: {
map: 'MacOdrum-LV5-floorplan-web',
roam: true
},
series: [
{
name: 'Route',
type: 'lines',
coordinateSystem: 'geo',
geoIndex: 0,
emphasis: {
label: {
show: false
}
},
polyline: true,
lineStyle: {
width: 5,
},
data: [
{
coords: [
[100, 400],
[300, 400],
[300, 600],
]
}
]
}
]
};
myChart.setOption(option);
}
);
What does the proposed API look like?
is there a "areaBackground" or a boolean to activate it ?
1条答案
按热度按时间sz81bmfz1#
please take a look at custom.polygon, it has color fill