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/02/02 16:06:16 UTC

[GitHub] [echarts] Clarkkkk opened a new issue #14192: The order of categories on axis won't change when datasetIndex changes

Clarkkkk opened a new issue #14192:
URL: https://github.com/apache/echarts/issues/14192


   ### Version
   5.0.1
   
   ### Reproduction link
   [https://jsfiddle.net/Charlllles/zbm5gn93/4/](https://jsfiddle.net/Charlllles/zbm5gn93/4/)
   
   ### Steps to reproduce
   Click the button, and it uses setOption() to change every series's datasetIndex. Those two datasets is sorted by different dimensions using transform.
   
   ### What is expected?
   The order of categories on yAxis should change to reflect the dataset with different sorting. Because if I use that specific sorted dataset in the very beginning, the order will be the same as the order of that dataset's data in relavant dimension.
   
   ### What is actually happening?
   Nothing happened actually. In getOption(), the datasetIndex is set correctly, but the order did not change. All I can do to change the order may be disposing the instance and re-create a new one.
   
   ---
   If the behaviour described above is expected, then I hope there is a method that let me change the order of axis categories.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk commented on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk commented on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771772315


   I've figured out a solution: set the relavant axis again after the datasetIndex is changed, and then the order in the axis will change correctly. Here is a demo:  https://jsfiddle.net/Charlllles/zbm5gn93/18/
   
   Anyway, the problem cost me hours, and I hope this can be documented.


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk commented on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk commented on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771772315


   I've figured out a solution: set the relavant axis again after the datasetIndex is changed, and then the order in the axis will change correctly. Here is a demo:  https://jsfiddle.net/Charlllles/zbm5gn93/18/
   
   Anyway, the problem cost me hours, and I hope this can be documented.


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk closed issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk closed issue #14192:
URL: https://github.com/apache/echarts/issues/14192


   


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk edited a comment on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk edited a comment on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771772315


   I've figured out a solution: set the relavant axis again using setOption() after the datasetIndex is changed, and then the order in the axis will change correctly. Here is a demo:  https://jsfiddle.net/Charlllles/zbm5gn93/18/
   
   Anyway, the problem cost me hours, and I hope this can be documented.


----------------------------------------------------------------
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771744275


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk edited a comment on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk edited a comment on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771772315


   I've figured out a solution: set the relavant axis again using setOption() after the datasetIndex is changed, and then the order in the axis will change correctly. Here is a demo:  https://jsfiddle.net/Charlllles/zbm5gn93/18/
   
   Anyway, the problem cost me hours, and I hope this can be documented.


----------------------------------------------------------------
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14192:
URL: https://github.com/apache/echarts/issues/14192#issuecomment-771744275


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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


[GitHub] [echarts] Clarkkkk closed issue #14192: The order of categories on axis won't change when datasetIndex changes

Posted by GitBox <gi...@apache.org>.
Clarkkkk closed issue #14192:
URL: https://github.com/apache/echarts/issues/14192


   


----------------------------------------------------------------
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