Last active
July 11, 2016 06:00
-
-
Save LarsBergqvist/d53acfde3eaae90d638ec8b3c2ee7ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="app" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Sensor data</title> | |
<script src="/static/node_modules/angular/angular.js"></script> | |
<script src="/static/node_modules/chart.js/dist/Chart.min.js"></script> | |
<script src="/static/node_modules/angular-chart.js/dist/angular-chart.min.js"></script> | |
<script src="/static/app.js"></script> | |
</head> | |
<body> | |
<h1>Sensor data</h1> | |
<div ng-controller="ChartCtrl"> | |
<label>Number of days: | |
<input type="number" min="1" ng-change="numdaysChanged()" ng-model="numdays" /> | |
</label> | |
<div ng-repeat="item in data"> | |
<h2 ng-bind="titles[$index]"></h2> | |
<canvas id="line" class="chart chart-line" chart-data="data[$index]" | |
chart-labels="labels[$index]" chart-series="series" chart-options="options"" chart-dataset-override="item.datasetOverride" chart-click="onClick"> | |
</canvas> | |
</div> | |
</div> | |
</body></html> | |
Status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment