Search code examples
angularchart.jsng2-charts

showLine property of scatter chart in ng2-charts is not working


The title pretty much sums it up. Even though I set the showLine property to true in the ChartConfiguration the dots are not connected with a line in the chart.

I tried with the following versions:

  • "chart.js": "^4.2.1", and "ng2-charts": "^4.1.1",
  • "chart.js": "~3.8.0", and "ng2-charts": "^3.0.0",

StackBlitz: https://stackblitz.com/edit/github-gus4a9-97hc3u

It seems to work with the original chart.js library.

Am I missing something?


Solution

  • As kikon pointed out in this comment, there was never actually a problem, just a styling issue.