Open peng3693 opened 2 years ago
5.3.3
No response
` echarts.registerMap('f1', {svg: svg}); var chartDom = document.getElementById('firstMapEcharts'); var myChart = echarts.init(chartDom, null, {renderer: 'svg'});
var option = { geo: { map: 'f1', roam: false, left: "10px", top: "10px", right: "-450px", bottom: "20px", layoutSize: '100%', selectedMode: 'false', emphasis: { label: { show: false } } } }; myChart.setOption(option); myChart.getOption();`
Using echarts to display the svg map, the color of some areas in the figure is lost and displayed as black blocks
This is the original display of the svg image, use html to display this svg image, all colors are displayed normally
- OS:mac - Browser:chrome - Framework:"react": "^18.2.0",
try removing the fill attribute from the element and adding style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none" it helped me
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
`
echarts.registerMap('f1', {svg: svg}); var chartDom = document.getElementById('firstMapEcharts'); var myChart = echarts.init(chartDom, null, {renderer: 'svg'});
Current Behavior
Using echarts to display the svg map, the color of some areas in the figure is lost and displayed as black blocks
Expected Behavior
This is the original display of the svg image, use html to display this svg image, all colors are displayed normally
Environment
Any additional comments?
No response