Skip to content

horizontal bars doesn't start at 0 #91

@liatcohen

Description

@liatcohen

When I use bar chart on horizontal mode, the zero is not at the start.
(for example, the red bar is 30 but it only shows 25):
image001

It doesn't happen when horizontalBars=false.

this is my code:

<ChartistGraph
    data={{
        labels: ['Yes', 'No', 'Maybe'],
        series: [30, 10, 5]
    }}
    type="Bar"
    options={{
        istributeSeries: true,
        horizontalBars: true,
    }}
/>

Have any idea how to fix it?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions