Skip to content

[Bug] dataset decals #19853

@brandonstubbs

Description

@brandonstubbs

Version

5.5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-y-category-stack&code=PYBwLglsB2AEC8sDeAoWsAmBDMWDOApmAFzJrqx7ACuATgMYGkDa5Fys0WAtk7AOQwC_ADSwAblgA21PgEZYAXxFsKSTjz78wAd2CiJ02aTliIYAtwDKYAJ5S-6jAXrTS6vLe4AjYFNLatBBY0ADmDvxKUYqqALrkyuSEQQR4LKqo7Oh2IFogEMKqMejxigDcQA

Steps to Reproduce

itemStyle is ignored from a dataset

dataset example:

https://echarts.apache.org/examples/en/editor.html?c=bar-y-category-stack&code=PYBwLglsB2AEC8sDeAoWsAmBDMWDOApmAFzJrqx7ACuATgMYGkDa5Fys0WAtk7AOQwC_ADSwAblgA21PgEZYAXxFsKSTjz78wAd2CiJ02aTliIYAtwDKYAJ5S-6jAXrTS6vLe4AjYFNLatBBY0ADmDvxKUYqqALrkyuSEQQR4LKqo7Oh2IFogEMKqMejxigDcQA

series data example:

https://echarts.apache.org/examples/en/editor.html?c=bar-y-category-stack&code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5CPkwDRUUAmAhmL2Jlq1JLGi8Ato1hMYWDrABuvADYBXGQEZYAX04iKYidOZgA7sEUqN29rAhgskgMp1VMpNywBjNcSQMWkkAI2BVMzxeaABzDyZdXT0udABdLl1ydN0AbiA

workaround

https://echarts.apache.org/examples/en/editor.html?c=bar-y-category-stack&code=PYBwLglsB2AEC8sDeAoWsCGAnCGBcya6sAptBgEYA2JAJgWFgK4kA0R6tJAxhlQUlgBnABbAA7g2ZtYXXlSEEA2oKEBPALYVg_WAHJoMEntgBfVsmGbtuvY1zQA5jROmAumaLmitDGAxCJGACHMLATFjcJMqh6ILkGtH6RnoWAG58LAQAjGbsxMTxGIkEduLAqbAZVFmwuaahbl75wiQ4JIqwSqGoBehgaiBJeiAQxqEN6E2mANxAA
This workaround was taken from https://stackoverflow.com/questions/77321155/customising-item-style-of-a-specific-item-of-the-series-using-dataset-property-i

Current Behavior

Currently the itemStyle is ignored if you are using a dataset.

Expected Behavior

Ideally itemStyle would not be ignored and I could use this same itemStyle across multiple series that use this datasource. There is a workaround, I want to confirm if that is the recommended approach or if this is indeed an issue?

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnot-a-bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions