Skip to content

[Bug] candlestick chart combined with markLine exception #21300

@xmatthias

Description

@xmatthias

Version

latest / playground

Link to Minimal Reproduction

reproduction

Steps to Reproduce

  • Use a candlestick chart with endoce, where x is not 0
  • add markLine within view
  • observe nothing is shown
  • open browser console in devtools
  • Look at the rendered error.

Current Behavior

Crash, no candle is shown

Logs in the browser console:

VM2393 about:srcdoc:1 failed to run code TypeError: Cannot read properties of undefined (reading 'ordinalMeta')
    at t.getOrdinalMeta (echarts.min.js:45:151210)
    at t._getCategory (echarts.min.js:45:245774)
    at D_ (echarts.min.js:45:251026)
    at P_ (echarts.min.js:45:251677)
    at t._doInit (echarts.min.js:45:245079)
    at t.initData (echarts.min.js:45:243066)
    at echarts.min.js:45:895623
    at e.renderSeries (echarts.min.js:45:895756)
    at echarts.min.js:45:889914
    at e.<anonymous> (echarts.min.js:45:126314)

Expected Behavior

Candlechart renders with lines drawn on top.

That's already the case in the following example - which has only a couple lines different, namely the timestamp is generated at position 0 - and all X encodings are consequently set to 0, too.

working sample

Environment

- OS:linux
- Browser: chromium
- Framework: echarts playground

Any additional comments?

This kindof negates the possibility to have encode - if we're forced to have certain parameters at certain locations in a chart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishregressionSomething no longer works as expected since a certain versiontopic: datasettopic: marker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions