title: How to set a good date with chart js
body: <p>I make a graph with <strong>NextJs</strong> and <strong>ChartJs</strong> on the stats of the covid (over the last 30 days) that I get with an API that provides me with the date and the stats :</p>
  <pre><code>timeline: {
    cases: {
     '5/13/21': 5902343,
     '...' : ...
    },
  }
  </code></pre>
  <p>I managed to make the graph but I would like to place the date returned for each stats on the X line of my label</p>
  <p>I managed to do this code (lineData is't my request) :</p>
  <pre><code>labels: [Object.keys(lineData.timeline.cases)],
  </code></pre>
  <p>but it shows me all the dates as one and the same object.</p>
  <p>For now my label looks like this</p>
  <pre><code>        labels: [
            &quot;1&quot;,
            &quot;2&quot;,
            &quot;3&quot;,
            &quot;4&quot;,
            &quot;5&quot;,
            &quot;6&quot;,
            &quot;7&quot;,
            &quot;8&quot;,
            &quot;9&quot;,
            &quot;10&quot;,
            &quot;11&quot;,
            &quot;12&quot;,
            &quot;13&quot;,
            &quot;14&quot;,
            &quot;15&quot;,
            &quot;16&quot;,
            &quot;17&quot;,
            &quot;18&quot;,
            &quot;19&quot;,
            &quot;20&quot;,
            &quot;21&quot;,
            &quot;22&quot;,
            &quot;23&quot;,
            &quot;24&quot;,
            &quot;25&quot;,
            &quot;26&quot;,
            &quot;27&quot;,
            &quot;28&quot;,
            &quot;29&quot;,
            &quot;30&quot;,
          ],
  </code></pre>
  <p>and I would like to replace values with the one provided by the api</p>