This repository was archived by the owner on Sep 17, 2021. It is now read-only.
This repository was archived by the owner on Sep 17, 2021. It is now read-only.
Label Overlapping X Axis SmoothLine #174
Open
Description
Before filing an issue please ensure the following boxes are checked, if applicable:
- [X ] I have searched for existing issues
- [X ] I have provided detailed instructions that can reproduce the issue (including code and data necessary)
Hi!
I'm trying to do a graph, with the data in the last 7, 30, 60 and 90 days.
Problem is, that the labels in the X axis are overlapping.
Currently i'm using this label function, where dateSelector is how many days I want, and v is the x indicator stating how many days back is that data.
labelFunction: ((v) => {
let d = moment(moment(this.state.date).format('YYYY-MM-DD'),'')
return d.subtract((this.state.dateSelector - v ),'days').format('DD-MM')
}),
Any help? Thanks