Skip to content

"Help wanted" Bar chart Time scaling graph not showing correctly #4938

Description

@eele94

For a statistics overview people can select a daterange.

I need the chart to plot the results according to a timestamp.
I use the type: time
here are some options:

scales: { yAxes: [{ type: 'linear', }], xAxes: [{ type: 'time', time: { tooltipFormat: 'lll', minimumTimeUnit: '{{ $readingData['minimumTimeUnit'] }}', min: {{$period->start->getTimestamp()*1000}}, max: {{$period->end->getTimestamp()*1000}}, } }] }

Current Behavior

You see I have only a couple of timestamps and it creates a bar with information that is not true.
I want only bar at the correct timestamp, not spreading weird:s

The bar chart currently
barchart
the bar chart data
barchart data

Context

Want to let people see statistics per day, week, month, year etc

Environment

  • Chart.js version: ^2.7.1
  • Vue-Chart : 2.8.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions