Skip to content

Incorrect data labels positioning when all data are 0 #1026

Closed
@netil

Description

Description

When all data values are 0, then the data label text appears at the bottom of the bars, which it should be positioning over. (it should be as the latter screenshot)
image

Steps to check or reproduce

var chart = bb.generate({
	data: {
		columns: [
			["data1", 0, 0, 0, 0],
		],
		type: "bar",
		labels: true
	},
	axis: {
		y: {
			min: 0
		}
	}
});

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions