Skip to content
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
@jmdelatorre

Description

@jmdelatorre

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.
screenshot 2017-07-20 16 56 14

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

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