Skip to content

Last tick (grid column) extended. #4576

@MichalMisiaszek

Description

@MichalMisiaszek

Expected Behavior

I am charting 1440 values with 1440 chart labels (minutes in 24 hours) in range (0-23).
I have checked that I have exactly 60 labels with 23 (minutes in hour) same as for every other hour.
The grid should be evenly spread.

Current Behavior

The last grid column is stretched and do not keep scale with others.

Possible Solution

None.

Steps to Reproduce (for bugs)

  1. Define data with 1440 data points.
  2. Define chart labels from 0 to 23, each value 60 times.
  3. xAxes: [{
    ticks: {
    stepSize: 1,
    maxTicksLimit: 26,
    suggestedMax: 24
    },
    scaleLabel : {
    display: true,
    fontColor: '#000000',
    labelString: 'Time UTC (hours)'
    }
    }],
  4. Draw.

Context

The chart looks bad :(.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions