I'm trying to display a function with a set of x and y values with ng2-charts.
Currently it doesn't diplay my values correctly.

My (example) dataset is:
chartDataSet: ChartDataSets[] = [ {
data: [
{ x: 5, y: 7 },
{ x: 10, y: 24 },
{ x: 15, y: 11 },
{ x: 20, y: 57 },
{ x: 25, y: 4 }]}];
As you can see, it only displays the first two points, but the y-axis labels are scaled correctly to 60, so it seems to recognize all points. Also I'd like to have labels like on the y-axis on my x-axis as well.
My component looks like this:
lineChartOptions: ChartOptions = {
responsive: true,
};
chartDataSet: ChartDataSets[] = [ {
data: [
{ x: 5, y: 7 },
{ x: 10, y: 24 },
{ x: 15, y: 11 },
{ x: 20, y: 57 },
{ x: 25, y: 4 }]}];
lineChartType: ChartType = 'line';
And my HTML like this:
<canvas baseChart
[datasets]="chartDataSet"
[options]="lineChartOptions"
[chartType]="lineChartType">
</canvas>
Any suggestions how to solve this? Thanks in advance