You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/01/05 18:30:12 UTC
[GitHub] [incubator-echarts] SnailSword commented on issue #13912: index in axisLabel’s formatter doesn't work as expected when "inverse=true"
SnailSword commented on issue #13912:
URL: https://github.com/apache/incubator-echarts/issues/13912#issuecomment-754817496
Does this meet your expectations?
```
formatter: function(value, index) {
switch (index) {
case (data.length - 1):
return '{first|} ' + value
break
case (data.length - 2):
return '{second|} ' + value
break
case (data.length - 3):
return '{third|} ' + value
break
default:
return value
}
},
```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org