Skip to content

Showing NaN in date time x-axis #1720

@cola119

Description

@cola119

Bug report

Related: #1448 (comment)
Thank you for your development. We fixed #1448 on v3.19.3.

Codepen

https://codesandbox.io/s/gracious-varahamihira-tbl4t?file=/src/index.js

Explanation

However, It still shows NaN when the total value of the second series is zero.
image

This is because we can't get the correctactiveIndex of the second series because of total !== 0 condition.
https://github.com/apexcharts/apexcharts.js/blob/master/src/modules/tooltip/Utils.js#L177-L184

I don't think this condition(total !== 0) is necessary, do you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions