Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. $scope.chartConfig = {
  2. options:
  3. chart:
  4. type: 'spline'
  5. plotBackgroundColor: null
  6. legend:
  7. enabled: true
  8. title:
  9. text: ''
  10. subtitle:
  11. text: ''
  12. exporting:
  13. url: $config.exportAddress
  14. width: 1000
  15. series: [{
  16. name: ''
  17. data: [
  18. ]
  19. },{
  20. name: ''
  21. data: [
  22. ]
  23. }]
  24. loading: false
  25. xAxis:
  26. categories: [
  27. ]
  28. title:
  29. text: ''
  30. yAxis:
  31. title:
  32. text: ''
  33. useHighStocks: false
  34. size:
  35. height: 500
  36. }
  37.  
  38. <div class="panel-body" id="report-display normalchart" ng-if="!productMonthlyChart">
  39. <highchart id="chart1" config="chartConfig"></highchart>
  40. </div>
  41.  
  42. $scope.chartConfig.series.length = 0
  43. # Set title and chart time and and name
  44. $scope.chartConfig.xAxis.categories = ['Build Overview']
  45. $scope.chartConfig.options.chart.type = 'column'
  46. $scope.graphName = 'Column Chart'
  47. $scope.chartConfig.series.push({name: 'Admitted', data: [$scope.fullBuildTotals.admitted]})
  48. $scope.chartConfig.series.push({name: 'Deprecated', data: [$scope.fullBuildTotals.deprecated]})
  49.  
  50. $scope.chartConfig.series[0].show()
  51. $scope.chartConfig.series[0].hide()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement