You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/12/08 03:06:54 UTC
[GitHub] WelloHorld commented on issue #9384: 折线图中根据yAxis 的 max 回调函数动态设置 y 轴无效
WelloHorld commented on issue #9384: 折线图中根据yAxis 的 max 回调函数动态设置 y 轴无效
URL: https://github.com/apache/incubator-echarts/issues/9384#issuecomment-445425262
> It works for me:
>
> ```js
> option = {
> xAxis: {
> type: 'category',
> data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
> },
> yAxis: {
> type: 'value',
> max: function (value) {
> return value.max * 10;
> }
> },
> series: [{
> data: [820, 932, 901, 934, 1290, 1330, 1320],
> type: 'line'
> }]
> };
> ```
I had try it,but it also didn't work. Otherwise, I have solved it by other method. Thanks a lot
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org