Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoBgn committed Mar 28, 2018
1 parent 7616571 commit 1d8d979
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ <h2> The report found top store strategies on the horizon include: </h2>
</div>

<!-- No data found -->
<div ng-if="(isDataFound==false)" common-data-not-found on-display-alerts="onDisplayAlerts()" endpoint="::widget.category" width="::widget.width" />
<div ng-show="widget.demoData" common-data-not-found />
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ <h4>Widget settings</h4>
</div>

<!-- No data found -->
<div ng-if="(isDataFound==false)" common-data-not-found on-display-alerts="onDisplayAlerts()" endpoint="::widget.category" width="::widget.width" />
<div ng-show="widget.demoData" common-data-not-found />
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#
# Component generated by Impac! Widget Generator!
#
module = angular.module('impac.components.widgets.sales-customers-engagement', [])
module.controller('WidgetSalesCustomersEngagementCtrl', ($scope, $q, $filter, ImpacWidgetsSvc, ImpacAssets, HighchartsFactory, ImpacUtilities) ->

Expand All @@ -27,15 +24,6 @@ module.controller('WidgetSalesCustomersEngagementCtrl', ($scope, $q, $filter, Im
# # == Sub-Components - Needed? =============================================================
$scope.chartDeferred = $q.defer()

# == Chart Events Callbacks =====================================================================
# Sets the transactions list resources type and displays it
# onClickBar = (event) ->
# $scope.isChartDisplayed = false

# == Directive Events Callbacks =====================================================================
# $scope.onButtonBack = () ->
# $scope.isChartDisplayed = true

# Widget specific methods
# --------------------------------------
w.initContext = ->
Expand Down Expand Up @@ -79,9 +67,6 @@ module.controller('WidgetSalesCustomersEngagementCtrl', ($scope, $q, $filter, Im

$scope.chart.render(w.content.chart, options)

# # Add events callbacks to chart object
# $scope.chart.addSeriesEvent('click', onClickBar)

# Notifies parent element that the chart is ready to be displayed
$scope.chartDeferred.notify($scope.chart)

Expand Down
30 changes: 30 additions & 0 deletions src/impac-angular.run.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,33 @@ module.run((ImpacAlerts)->
module.run((editableOptions) ->
editableOptions.theme = 'bs3'
)

module.run((ImpacTheming) ->
Highcharts.theme =
colors: ImpacTheming.get().chartColors.array
chart:
backgroundColor: null
title: style:
fontSize: '16px'
fontWeight: 'bold'
textTransform: 'uppercase'
tooltip:
borderWidth: 0
backgroundColor: 'rgba(219,219,216,0.8)'
shadow: true
legend: itemStyle:
fontWeight: 'bold'
fontSize: '13px'
xAxis:
labels: style: fontSize: '10px'
yAxis:
minorTickInterval: 'auto'
title: style: textTransform: 'uppercase'
labels: style: fontSize: '12px'
plotOptions: candlestick: lineColor: '#404048'
background2: '#F0F0EA'

# Apply the theme
Highcharts.setOptions Highcharts.theme

)
32 changes: 0 additions & 32 deletions src/services/highcharts-theme/highcharts-theme.svc.coffee

This file was deleted.

0 comments on commit 1d8d979

Please sign in to comment.