parallel定义多个category类型时不能做筛选,只能第一个category可以拖动筛选,其他的筛选不对。
配置项如下
option = {
parallelAxis: [
{dim: 0, name: 'Price'},
{dim: 1, name: 'Net Weight'},
{dim: 2, name: 'Amount'},
{
dim: 3,
name: 'Score',
type: 'category',
data: ['Excellent', 'Good', 'OK', 'Bad']
},
{
dim: 4,
name: 'Score2',
type: 'category',
data: ['Excellent', 'Good', 'OK', 'Bad']
}
],
series: {
type: 'parallel',
lineStyle: {
width: 4
},
data: [
[12.99, 100, 82, 'Good', 'Good'],
[9.99, 80, 77, 'OK', 'OK'],
[20, 120, 60, 'Excellent', 'Excellent']
]
}
};