Open vbelot opened 5 years ago
Use options.width: 'auto'
.
Use options={width:-1}
. This works for me with an absolutely fresh project created using ng
and following all of the instructions on installing (using the angular-cli.json
instructions except for the new angular.json
file and replacing the ../node_modules....
paths with node_modules/....
to represent the new path organization in the newer Angular)
in html
<div id="graphdiv"> <ng-dygraphs [data]="dataGraph" [options]="options" [customVisibility]=true> </ng-dygraphs> </div>
after in option at the controller:
this.options = { width: document.getElementById('graphdiv').offsetWidth, .... }
Hi, I spent days trying to make it work without success. How can you reproduce this example this ng-dygraph ? http://dygraphs.com/gallery/#g/resize
I tried a lot of things but I cannot apply style to the graph div.
Kind regards