Advertisement
Guest User

Untitled

a guest
May 19th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2. <div class="col">
  3. <div ui-grid="gridOptions" class="myGrid" ui-grid-pinning ui-grid-exporter ng-if="statsdisplay == 'table'"></div>
  4. <nvd3 options="options" data="graphdata" ng-if="statsdisplay == 'graph'" on-ready="callback"></nvd3>
  5. </div>
  6.  
  7.  
  8. $scope.options = {
  9. chart: {
  10. type: 'stackedAreaChart',
  11. height: 450,
  12. margin : {
  13. top: 20,
  14. right: 20,
  15. bottom: 30,
  16. left: 40
  17. },
  18. x: function(d){return d[0];},
  19. y: function(d){return d[1];},
  20. useVoronoi: false,
  21. clipEdge: true,
  22. duration: 100,
  23. legendPosition : "bottom",
  24. legend :
  25. {
  26. updateState : false,
  27. margin :{
  28. top : 15
  29. },
  30. },
  31. showControls : false,
  32. xAxis: {
  33. rotateLabels: "-90",
  34. ticks: 4,
  35. },
  36. yAxis: {
  37. axisLabel: 'ktoe',
  38. axisLabelDistanc: 40
  39. },
  40.  
  41. zoom: {
  42. enabled: false,
  43. scaleExtent: [1, 10],
  44. useFixedDomain: false,
  45. useNiceScale: false,
  46. horizontalOff: false,
  47. verticalOff: true,
  48. unzoomEventType: 'dblclick.zoom'
  49. }
  50. }
  51. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement