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] axisPointer label alignment wrong when using rich text #20523

Open
geertplaisier opened this issue Nov 19, 2024 · 0 comments
Open

[Bug] axisPointer label alignment wrong when using rich text #20523

geertplaisier opened this issue Nov 19, 2024 · 0 comments
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@geertplaisier
Copy link

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdPqViNceADKMARlQA2RVPfQAzTgBbZhYOIgAKADdGTyUASgQAPmI_Ugh_WGjYpQR4RFozMFpE3zTSDiowBQ44WiQ3YE8BKjwwAB8igF9aAG5-Py6B-0rq2tgYuKp-tK67PyN6bR9h0kbm1rAV8tJA6DB1CFZtLdl1zVX0IdmBuYHHfAAFYAh9qnDUvzxtYAB3IjAHCU83sFGodG-jAEf14q087i823KgQ4ITAYUijA4rES8BSZR2GSyWNYADpJrl8gUiiVPjt0KManUGk0BJ1mD0ZvTrvTGeMSeSctNLrA7jtFss6eVzkj6bA9gcqEcTnRzrQRVcRTz7NrRSQxbByDh8LKyJQaLIKcp9fM8O8IK0xAMCaQhGARLBRABGABMAAYeLB_QHYF6AKwhgAcIYA7CGvV74wBmP22VZgi20NxY9U6kjWFBdXpAA

Steps to Reproduce

Use an axisPointer with rich text the alignment for the tooltip is incorrect. Without rich text the label is aligned in the center, when using rich text, the alignment is incorrect.

For example, use:

formatter: arg => ['{bold|', arg.value, '}'].join(''),
rich: {
  bold: {
    fontWeight: 'bold'
  }
}

Current Behavior

axisPointer label with rich text alignment is incorrect

Expected Behavior

When using rich text the alignment should be the same as without

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@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 Nov 19, 2024
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 pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant