Skip to content

How to add custom labels in bar chart? #773

@Fedex75

Description

@Fedex75

I have this "duration" style BarChart

<BarChart
	data={currentContractsChartData}
	x={['startDate', 'endDate']}
	xScale={scaleTime()}
	y="name"
	grid={{ x: false, y: true, bandAlign: 'between' }}
	orientation="horizontal"
	padding={{ left: 12, bottom: 36 }}
/>

and i would like to add custom labels inside the bars but i'm not sure how to do that. Thanks in advance

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