[Chartjs]-Remove label from line chart โ€“ react-chartjs-2

2๐Ÿ‘

โœ…

You are passing the options to the data prop, this is incorrect. You will need to pass the options to the options prop like so:

<Chart type="line"
  options={{
    plugins: {
      legend: {
        display: false,
      },           
    }
  }}
  data={{
    labels: props.sets[0],
    datasets: props.dataset,
  }}
/>

Leave a comment