Skip to content

User cannot copy data point's colour to itemStyle even though built-in themes can #13402

@Bilge

Description

@Bilge

Version

4.9.0

Steps to reproduce

By default, itemStyle displays items using data point's colour as its border colour. In "dark" theme, this is reversed so that the item's fill colour is the data point colour. However, it seems there is no way for the user to express this, because series-line.itemStyle.color and series-line.itemStyle.borderColor can only be fixed colours, gradients or textures: they cannot reference the data point's colour.

I also checked the source for the dark theme to see how it was doing this and there is nothing in the code related to changing the itemStyle's colour to match the data point colour.

Default theme Dark theme
image image

What is expected?

User should be able to set the colour using the data point's colour assigned to it by visualMap.

What is actually happening?

User can only set a fixed colour that is not related to the data point's colour.

I cannot just change the entire theme to get this effect, because (besides being unintuitive) changing the entire theme has other consequences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions