Coordiante system for AngularJS
- Drag & Drop
- Zoom
- Easy to use
$ bower install angular-coordinate
<coordinate api="coordinate" width="100%" height="100%"></coordinate>
- width
- height
- scaleX
- scaleY
- fullscreen
- show-input
- api
You need to provide a function called coordinate
in your scope to access the API
$scope.coordinate = function (coordinate) {
coordinate.addPoint(1, 1);
coordinate.addFunction('x^3');
};
TODO
- Smarter scaling on zoom
- Tests
- current x value on graph
- scroll/zoom
- axis labels ('intelligent')
- display area current point x/y
- drag drop
- fullscreen