[Chartjs]-ChartJs Not displaying data

1👍

Pay attention when using linear axis configuration, so data are points identified by a couple {x, y} like below:

$scope.data = [
    [
        { x: 0, y: 20 }, 
        { x: 1, y: 22 }, 
        { x: 2, y: 30 }, 
        { x: 3, y: 5 }, 
        ...
    ],

Check my working example: https://jsfiddle.net/beaver71/7sbchj9n/

Leave a comment