diff --git a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html index 226ea4cc8aa303b6aaebf2d336bb9030dd8481a3..aa0f7cfb906b16f1b4c81a9c384c6cdd1def8d71 100755 --- a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html +++ b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html @@ -61,27 +61,27 @@ <label> <input type="checkbox" - name="settings.grid" + name="grid" class="form-control form-control-sm" - [checked]=settings.grid + [checked]= settings.grid (click)="toggleGrid()"> Grilla </label> <label> <input type="checkbox" - name="settings.axis" + name="axis" class="form-control form-control-sm" - [checked]=settings.axis + [checked]= settings.axis (click)="toggleAxis()"> Ejes </label> <label> <input type="checkbox" - name="settings.tip" + name="tip" class="form-control form-control-sm" - [checked]=settings.tip + [checked]= settings.tip (click)="toggleTip()"> Tip </label> diff --git a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts index 7282c897275c1be6b0f54355cb433358b20360e1..4329cdce72536ff3de264cce525d4d62efc23dec 100755 --- a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts +++ b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts @@ -393,6 +393,7 @@ export class Graph2DComponent { */ public toggleGrid = function () { this.instance.toggleGrid(); + this.settings.grid = !this.settings.grid; } /** @@ -401,6 +402,7 @@ export class Graph2DComponent { */ public toggleAxis = function () { this.instance.toggleAxis(); + this.settings.axis = !this.settings.axis; } /** @@ -409,6 +411,7 @@ export class Graph2DComponent { */ public toggleTip = function () { this.instance.toggleTip(); + this.settings.tip = !this.settings.tip; } /**