-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
6.0
Link to Minimal Reproduction
Steps to Reproduce
好用的例子如下
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'bar',
markLine: {
data: [{
name: '平均线',
// 支持 'average', 'min', 'max'
type: 'average'
}]
}
}
]
};
不好用的例子如下
option = {
dataset: {
source: [
['score', 'amount', 'product'],
[89.3, 58212, 'Matcha Latte'],
[57.1, 78254, 'Milk Tea'],
[74.4, 41032, 'Cheese Cocoa'],
[50.1, 12755, 'Cheese Brownie'],
[89.7, 20145, 'Matcha Cocoa'],
[68.1, 79146, 'Tea'],
[19.6, 91852, 'Orange Juice'],
[10.6, 101852, 'Lemon Juice'],
[32.7, 20112, 'Walnut Brownie']
]
},
xAxis: {type: 'category'},
yAxis: {
type: 'value'
},
series: [
{
type: 'bar',
encode: {
x: 'product',
y: 'amount'
},
markLine: {
data: [{
name: '平均线',
type: 'average'
}]
}
}
]
};
Current Behavior
不好用的例子加载报错
Expected Behavior
Environment
- OS:
- Browser:
- Framework:Any additional comments?
之前v5的版本是好用的
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.