scatter.js 423 Bytes
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
(function () {
  'use strict';

  var app = angular.module('app', ['chart.js']);

  app.controller('ScatterCtrl', ['$scope', function ($scope) {
    $scope.data = [[{
      x: -10,
      y: -5
    }, {
      x: 0,
      y: 10
    }, {
      x: 10,
      y: 5
    }]];

    $scope.options = {
      scales: {
        xAxes: [{
          type: 'linear',
          position: 'bottom'
        }]
      }
    };

  }]);


})();