datavisyn/chartjs-chart-box-and-violin-plot

Is timeseries supported?

mathijsfr opened this issue · 0 comments

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.