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

Cannot update textStyle in tooltip with formatter #15

Open
pavelbabenko opened this issue Feb 2, 2023 · 5 comments
Open

Cannot update textStyle in tooltip with formatter #15

pavelbabenko opened this issue Feb 2, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@pavelbabenko
Copy link

Hi! I'm trying to customize tooltip in series with type: 'custom' using formatted function, but I'm not able to change styles of text

    type: 'custom',
    data: [7000],
    tooltip: {
      formatter: (params: CallbackDataParams) => {
        return `Data: ${params.data}`;
      },
      textStyle: {
        fontSize: 20,
      },
    },

The result:

image

@zhiqingchen
Copy link
Member

zhiqingchen commented Feb 2, 2023

Yes, this is a problem. custom tooltip in echarts uses html instead of svg, and html is not currently supported in wrn-echarts.

Alternatively, you can select svg rendering in the chart editor in echarts and locate if htm is used by the browser's review element.

We are also in the process of sorting out the relevant currently unsupported features.

@zhiqingchen zhiqingchen added the bug Something isn't working label Mar 1, 2023
@chj-damon
Copy link

is it possible to support this?

@zhiqingchen
Copy link
Member

we will try it.

@zhiqingchen
Copy link
Member

custom tooltip in echarts uses html instead of svg, and html is not currently supported in wrn-echarts.

This sentence is misrepresented

@zhiqingchen
Copy link
Member

apache/echarts#18339

It may be an issue of echarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

3 participants