Skip to content
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

[Bug] title.textStyle.ellipsis config not working #18517

Closed
CWS-CTRL opened this issue Apr 16, 2023 · 3 comments · Fixed by #18525
Closed

[Bug] title.textStyle.ellipsis config not working #18517

CWS-CTRL opened this issue Apr 16, 2023 · 3 comments · Fixed by #18525
Labels
bug en This issue is in English resolved topic: label

Comments

@CWS-CTRL
Copy link

Version

5.4.2

Link to Minimal Reproduction

https://codepen.io/cws-ctrl/pen/MWPyZjY

Steps to Reproduce

Problem

title.textStyle.ellipsis config not working

Read the source code and discover
p99qm80.png
Even if you show "ellipsis" set in the echarts configuration,
this operation also causes the final output to have no "ellipsis" attribute,
then you end up with the default value "..."

Scheme

You can add it to the second parameter of the createTextStyle function
ellipsis: textStyleModel.getShallow.('ellipsis')
There may be more than one error

Current Behavior

not working

Expected Behavior

docs: Ellipsis to be displayed when overflow is set to truncate.

'truncate' Truncate the overflow lines.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Or maybe it's just me

@CWS-CTRL CWS-CTRL added the bug label Apr 16, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Apr 16, 2023
@echarts-bot echarts-bot bot changed the title [Bug] title.textStyle.ellipsis config not working [Bug] title.textStyle.ellipsis config not working Apr 16, 2023
@Ovilia
Copy link
Contributor

Ovilia commented Apr 18, 2023

The demo cannot run. Please consider adding an empty series.

It's nice to hear that you have figured out the solution. Please consider making a pull request!

@CWS-CTRL
Copy link
Author

The demo cannot run. Please consider adding an empty series.

It's nice to hear that you have figured out the solution. Please consider making a pull request!

Sorry, this is an "option", "ellipsis" specifies "%%%" but gets the default value "..."
p9PIxII.png

option = {
title: {
text: 'Main Title',
left: 'center',
top: 'center',
textStyle: {
fontSize: 30,
width: 100,
overflow: 'truncate',
ellipsis: '%%%'
//not working
// docs: Ellipsis to be displayed when overflow is set to truncate.
// 'truncate' Truncate the overflow lines.
},
}
};

@Ovilia
Copy link
Contributor

Ovilia commented Apr 18, 2023

It seems none of the ellipsis is working. See also the demo. I'm fixing this problem.

@Ovilia Ovilia closed this as completed Apr 20, 2023
@plainheart plainheart added resolved topic: label and removed pending We are not sure about whether this is a bug/new feature. labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English resolved topic: label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants