0👍
You can do it in two ways:
- Setting the line configuration in global options.
var options = {
elements: {
line: {
tension: 0
}
}
};
- Setting
lineTension
to 0 in datasets.
var chartData = {
labels: labels,
datasets: [{
label: "Chart Data",
lineTension: 0,
data: someData,
}]
};
- Chartjs-PrimeNG pie chart randomly displays, and displays on change of resolution
- Chartjs-How to use chartjs-plugin-annotation in Angular
Source:stackexchange.com