Skip to content

Doesn't fill the chart with zero values when data is missing #58

@faulander

Description

@faulander

according to the documentation, the chart should fill up missing values with 0 as long as the labels are set:
i have 3 arrays with an amount for every weekday, today is wednesday, so the array has 3 items:
image
the chart is as following:

let chartData = {
		labels: ['MO', 'DI', 'MI', 'DO', 'FR'],
		datasets: [
			{ name: 'Closed', values: myClosedTickets },
			{ name: 'Worked', values: myWorkedTickets },
			{ name: 'Minutes', values: myLoggedMinutes }
		],
		title: 'Tickets'
	};

so the chart should show zero values for thursday and friday, since they are item 4 and 5 in the area, but it does not:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: More info neededMore information is required before this can be worked onType: BugIssue / bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions