Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col">
- <div ui-grid="gridOptions" class="myGrid" ui-grid-pinning ui-grid-exporter ng-if="statsdisplay == 'table'"></div>
- <nvd3 options="options" data="graphdata" ng-if="statsdisplay == 'graph'" on-ready="callback"></nvd3>
- </div>
- $scope.options = {
- chart: {
- type: 'stackedAreaChart',
- height: 450,
- margin : {
- top: 20,
- right: 20,
- bottom: 30,
- left: 40
- },
- x: function(d){return d[0];},
- y: function(d){return d[1];},
- useVoronoi: false,
- clipEdge: true,
- duration: 100,
- legendPosition : "bottom",
- legend :
- {
- updateState : false,
- margin :{
- top : 15
- },
- },
- showControls : false,
- xAxis: {
- rotateLabels: "-90",
- ticks: 4,
- },
- yAxis: {
- axisLabel: 'ktoe',
- axisLabelDistanc: 40
- },
- zoom: {
- enabled: false,
- scaleExtent: [1, 10],
- useFixedDomain: false,
- useNiceScale: false,
- horizontalOff: false,
- verticalOff: true,
- unzoomEventType: 'dblclick.zoom'
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement