Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Is timeseries supported? #111

Closed
mathijsfr opened this issue Jun 10, 2021 · 0 comments
Closed

Is timeseries supported? #111

mathijsfr opened this issue Jun 10, 2021 · 0 comments

Comments

@mathijsfr
Copy link

mathijsfr commented Jun 10, 2021

Is timeseries supported for boxplot? I.e. having data in the following format:

boxplotData: {
      labels: ['test1'],
      datasets: [{
        label: 'Producten statistiek',
        borderColor: 'red',
        backgroundColor: 'rgba(255,0,0,0.5)',
        medianColor: 'blue',
        borderWidth: 1,
        outlierRadius: 3,
        itemRadius: 3,
        outlierColor: '#999999',
        data: [ { x: new Date(2021, 3, 1), y: random(100, 20) }, 
                   { x: new Date(2021, 3, 2), y: random(100, 20) },
                   .
                   .
                   .
                  { x: new Date(2021, 3, 20), y: random(100, 20) } ]
      }]
    },

The reason I want to use this, because it allows using the chartjs options for the x-axis. For example, maxTicksLimit and autoSkip on the dates.

@ghost ghost closed this as completed Nov 25, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant