Skip to content

Should remove breaks for OHLC, Candlestick #1382

Closed
@mckelvin

Description

@mckelvin

The code to reproduce is based on simple-candlestick-chart-example . The difference is:

11th, 12th are not existed in the dataset (simply because they're weekdays/non-trading days), but candlesticks in the chart should be continued, i.e.: the breaks of 11th, 12th should be removed like what highcharts do.

This behaviour should be the default one for OHLC and Candlestick charts, otherwise it will become terrible for real world dataset.


https://codepen.io/mckelvin/pen/ygwMQz is my workaround by using tickvals and ticktext. But there's another problem: nticks doesn't work when tickmode=array as mentioned in docs, there will be too many tick labels if there're too many ticks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions