0

can anyone tell me how can I remove the shadow behind the line chart as in the image below?

Image with the shadow Thanks in advance :)

szef0
  • 33
  • 5

1 Answers1

0

You can do it in two ways:

  1. Setting the line configuration in global options.
var options = {
  elements: {
    line: {
      tension: 0
    }
  }
};
  1. Setting lineTension to 0 in datasets.
var chartData = {
  labels: labels,
  datasets: [{
    label: "Chart Data",
    lineTension: 0,           
    data: someData,
  }]
};
shan_1.0
  • 87
  • 1
  • 10