Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itemSymbol in the visualMap (piecewise) can't be set #5719

Closed
jarben opened this issue May 10, 2017 · 5 comments
Closed

itemSymbol in the visualMap (piecewise) can't be set #5719

jarben opened this issue May 10, 2017 · 5 comments
Assignees

Comments

@jarben
Copy link
Contributor

jarben commented May 10, 2017

Version: 3.5.4

Seems like itemSymbol can't be changed to "circle" or other values in visualMap:

image

@100pah 100pah added the bug label May 23, 2017
@yueshuiniao
Copy link

同样碰到这个问题

@hoganjobs
Copy link

目前使用中也遇到这个问题,不知道这个问题是否修复了?

@lauraxm
Copy link

lauraxm commented Jun 12, 2019

@Ovilia itemSymbol issue

@sophia1024
Copy link

2021年了,itemSymbol依旧不生效

@pissang pissang added this to the 5.1.0 milestone Jan 19, 2021
@sophia1024
Copy link

sophia1024 commented Jan 19, 2021

企业微信截图_ae9fb476-a179-4f4f-8122-5ee18126d2be

$.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
}]
}
}
});
});

@Ovilia Ovilia removed this from the 5.1.0 milestone Feb 8, 2021
@pissang pissang closed this as completed in 71ec194 Apr 7, 2021
pissang added a commit that referenced this issue Apr 7, 2021
fix(visualMap): use itemSymbol as default symbol type and fix #5719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants