We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
就在官方示例的数据调整:
option = { legend: {}, tooltip: {}, dataset: { source: [ ['product', '2015', '2016'], ['Matcha Latte', 43.3, 1185.8], ['Milk Tea', 83.1, 1173.4], ['Cheese Cocoa', 86.4, 1165.2], ['Walnut Brownie', 72.4, 1153.9] ] }, xAxis: {type: 'category'}, yAxis: [{name:'2015', type:'value', max: function(value) { return value.max; } }, {name:'2016', type:'value', max: function(value) { return value.max ; }}], // Declare several bar series, each will be mapped // to a column of dataset.source by default. series: [ {type: 'bar'}, {type: 'line'} ] };
2个Y轴根据各自序列的最大值显示。
The text was updated successfully, but these errors were encountered:
OK. series: [ {type: 'bar'}, {type: 'line',yAxisIndex: 1} ]
Sorry, something went wrong.
No branches or pull requests
One-line summary [问题简述]
就在官方示例的数据调整:
option = {
legend: {},
tooltip: {},
dataset: {
source: [
['product', '2015', '2016'],
['Matcha Latte', 43.3, 1185.8],
['Milk Tea', 83.1, 1173.4],
['Cheese Cocoa', 86.4, 1165.2],
['Walnut Brownie', 72.4, 1153.9]
]
},
xAxis: {type: 'category'},
yAxis: [{name:'2015',
type:'value',
max: function(value) {
return value.max;
}
},
{name:'2016',
type:'value',
max: function(value) {
return value.max ;
}}],
// Declare several bar series, each will be mapped
// to a column of dataset.source by default.
series: [
{type: 'bar'},
{type: 'line'}
]
};
Expected behaviour [期望结果]
2个Y轴根据各自序列的最大值显示。
The text was updated successfully, but these errors were encountered: