Skip to content

Instantly share code, notes, and snippets.

@rahim
Last active December 29, 2015 13:29
Show Gist options
  • Save rahim/7677939 to your computer and use it in GitHub Desktop.
Save rahim/7677939 to your computer and use it in GitHub Desktop.
diff --git i/app/scripts/app.coffee w/app/scripts/app.coffee
index 802853c..633c952 100644
--- i/app/scripts/app.coffee
+++ w/app/scripts/app.coffee
@@ -1,5 +1,5 @@
angular.module('ampRetirementSimulatorApp', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ui.bootstrap', 'ui.slider', 'highcharts-ng', 'ampCommon'])
- .config ($routeProvider, $locationProvider, FlowProvider, CommentaryProvider) ->
+ .config ($routeProvider, $locationProvider, FlowProvider, CommentaryProvider, colors) ->
# Enabling HTML5 mode gives us clean URLs in modern browsers
# but we find that it breaks when the app is served from
# a nested location
@@ -59,6 +59,11 @@ angular.module('ampRetirementSimulatorApp', ['ngRoute', 'ngAnimate', 'ngSanitize
templateUrl: 'views/not_found.html'
controller: 'NotFoundCtrl'
+ angular.extend colors,
+ 'pie-growth': colors['ipac-yellow']
+ 'pie-defensive': colors['calculator-grey-2']
+ 'chart-fill': colors['ipac-yellow']
+
Highcharts.setOptions
chart:
style:
diff --git i/app/scripts/services/chart_config.coffee w/app/scripts/services/chart_config.coffee
index 5deccfd..37ecb47 100644
--- i/app/scripts/services/chart_config.coffee
+++ w/app/scripts/services/chart_config.coffee
@@ -13,8 +13,8 @@ angular.module('ampRetirementSimulatorApp')
animate: false
plotOptions:
area:
- color: colors['amp-blue-5']
- fillColor: colors['amp-blue-5']
+ color: colors['chart-fill']
+ fillColor: colors['chart-fill']
fillOpacity: 1
marker:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment