You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
itemSymbol in the visualMap (piecewise) can't be set #5719
Activity
yueshuiniao commentedon Aug 28, 2017
同样碰到这个问题
hoganjobs commentedon Mar 2, 2018
目前使用中也遇到这个问题,不知道这个问题是否修复了?
lauraxm commentedon Jun 12, 2019
@Ovilia
itemSymbolissuesophia1024 commentedon Jan 19, 2021
2021年了,itemSymbol依旧不生效
sophia1024 commentedon Jan 19, 2021
$.get(ROOT_PATH + '/data/asset/data/aqi-beijing.json', function (data) {
myChart.setOption(option = {
title: {
text: 'Beijing AQI'
},
tooltip: {
trigger: 'axis'
},
xAxis: {
data: data.map(function (item) {
return item[0];
})
},
yAxis: {
splitLine: {
show: false
}
},
toolbox: {
left: 'center',
feature: {
dataZoom: {
yAxisIndex: 'none'
},
restore: {},
saveAsImage: {}
}
},
dataZoom: [{
startValue: '2014-06-01'
}, {
type: 'inside'
}],
visualMap: {
top: 10,
itemWidth: 10,
itemHeight: 10,
itemSymbol:'diamond',
inRange: {
color: ['#121122', 'rgba(3,4,5,0.4)', 'red'],
},
outOfRange:{
color: '#999',
symbol: 'pin',
},
right: 10,
pieces: [{
gt: 0,
lte: 50,
color: '#96',
symbol: 'pin',
}, {
gt: 50,
lte: 100,
color: '#ffde33',
symbolSize: 12,
symbol: 'diamond',
}, {
gt: 100,
lte: 150,
color: '#ff9933',
symbol: 'circle',
}, {
gt: 150,
lte: 200,
color: '#cc0033'
}, {
gt: 200,
lte: 300,
color: '#660099',
symbol: 'diamond',
}, {
gt: 300,
color: '#7e0023'
}],
},
series: {
name: 'Beijing AQI',
type: 'line',
symbol:"arrow",
data: data.map(function (item) {
return item[1];
}),
markLine: {
silent: true,
data: [{
yAxis: 50
}, {
yAxis: 100
}, {
yAxis: 150
}, {
yAxis: 200
}, {
yAxis: 300
}]
}
}
});
});
fix(visualMap): use itemSymbol as default symbol type and fix #5719
Merge pull request #14243 from apache/feat-visualMap-itemSymbol