Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Candlestick doesn't work when x does not start at 0 #3441

Description

@mannyveloso

What did you do?

We're attempting to make a candlestick graph where the x-axis is a date value. We added a datevalueformatter so the x-axis would display DD-MMM-YYYY.

What did you expect to happen?

The date formatter would display the date on the x-axis.

What happened instead?

The graph axis labels were 01-Jan-1970. In addition, the candlestick graph was drawn oddly. The red dot that was normally there was gone.

From a quick look at the code, the renderer seems to assume that x is a monotonically increasing value that starts at 0.

Charts Environment

Charts version/Branch/Commit Number:
Charts 3.1.1
Xcode 9.3
Swift 4.1
iOS 11.3
Mac OS 10.13.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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