-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
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
[12979] fix bug of overriding magictype buttons' title when click the… #13366
Conversation
Merge some commits from apache/master
Merge some commits from apache/master.
…pecified or NaN.
Merge some commits from apache/master.
Merge some commits from apache/master
separated add husky pre-commit task from the others
…el after rotate
Merge some commits from apache/master
fix(tooltip): added dispose method for rich tooltip, close apache#12607.
…and it can be fetched from echarts object. (apache#12568)
Merge some commits from apache/master.
fix(bar): showBackground bug when update with no previous background elements
fix(timeline): fix icon style not work bug brought in apache#13015
style: remove unexpected es6 code
Release 4.9.0
Merge 4.9.0 release into master
fix: partially resolves apache#13164
Add tags based on this tutorial: https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features#git.asf.yamlfeatures-Repositorymetadata and this JIRA: https://issues.apache.org/jira/browse/INFRA-20886
… button for stack view
Thanks for your contribution! |
@pingf Thank you very much, could you submit this PR to |
@susiwen8 I'll change the PR to next then |
@susiwen8 so if I want to create PR next time , which branch should I use as the base branch ? the master or next? |
@pingf since too much conflict,, It's better to create a new PR for |
arrr... the changes in next are huge, even migrated to typescripts..... |
Check it out #12926 |
@susiwen8 |
@susiwen8 |
Brief Information
This pull request is in the type of:
What does this PR do?
fix bug of overriding the button title of the tool box
currently, if we change the title of the magic-type button in the toolbox, it works as expected
however, if we click the button for stack view, all magic type buttons' titles revert to the default
our users just want a chart without chinese, I guess this is the final block!
Fixed issues
Details
Before: What was the problem?
to check this one, we need do sth like this
as stack and tiled are sth like a pair, we need to set the title for the tiled
but it only works if we never click the stack button,
once we click the button for stack, all titles revert to the the default chinese ones
After: How is it fixed in this PR?
the old code use magicTypeLang.title as the base to override the new title
however, this is the one of fixed chinese
and now I change the logic to flip the title of stack and tiled when we click, and use model.option to get the title dynamically
and now it works as expected
Usage
Are there any API changes?
Related test cases or examples to use the new APIs
NA.
Others
Merging options
Other information