Merge pull request #10 from Pear-Trading/TBSliver/Widget-Graph-Improvements

Refactored large graph
This commit is contained in:
Tom Bloor 2017-09-08 13:25:20 +01:00 committed by GitHub
commit 5279dfae10
8 changed files with 190 additions and 226 deletions

View file

@ -7,7 +7,8 @@ export class OrgGraphsService {
constructor(private api: ApiService) { }
public getGraph(name: string) {
return this.api.post(this.orgGraphUrl, { graph: name });
public getGraph(name: string, data: any = {}) {
data.graph = name;
return this.api.post(this.orgGraphUrl, data);
}
}