Skip to content

each labels contains only 1 bar of data #498

@jacky-ew

Description

@jacky-ew

may i know how to generate a bar chart with each labels contains its own bar of data

eg :

data = {
    labels: ["apple", "orange", "pear"],
    datasets: **this is the part where i stucked**
}

i want to have 3 bars displaying :
apples -> a bar (10 apples),
orange -> a bar (6 oranges),
pear -> a bar (4 pears)

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