Skip to content

Commit 1d8d979

Browse files
author
Marco Bagnasco
committed
changes after review
1 parent 7616571 commit 1d8d979

5 files changed

Lines changed: 32 additions & 49 deletions

File tree

src/components/widgets/sales-average-purchase-size/sales-average-purchase-size.tmpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ <h2> The report found top store strategies on the horizon include: </h2>
5454
</div>
5555

5656
<!-- No data found -->
57-
<div ng-if="(isDataFound==false)" common-data-not-found on-display-alerts="onDisplayAlerts()" endpoint="::widget.category" width="::widget.width" />
57+
<div ng-show="widget.demoData" common-data-not-found />
5858
</div>
5959
</div>

src/components/widgets/sales-average-visit/sales-average-visit.tmpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ <h4>Widget settings</h4>
2626
</div>
2727

2828
<!-- No data found -->
29-
<div ng-if="(isDataFound==false)" common-data-not-found on-display-alerts="onDisplayAlerts()" endpoint="::widget.category" width="::widget.width" />
29+
<div ng-show="widget.demoData" common-data-not-found />
3030
</div>
3131
</div>

src/components/widgets/sales-customers-engagement/sales-customers-engagement.directive.coffee

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#
2-
# Component generated by Impac! Widget Generator!
3-
#
41
module = angular.module('impac.components.widgets.sales-customers-engagement', [])
52
module.controller('WidgetSalesCustomersEngagementCtrl', ($scope, $q, $filter, ImpacWidgetsSvc, ImpacAssets, HighchartsFactory, ImpacUtilities) ->
63

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

30-
# == Chart Events Callbacks =====================================================================
31-
# Sets the transactions list resources type and displays it
32-
# onClickBar = (event) ->
33-
# $scope.isChartDisplayed = false
34-
35-
# == Directive Events Callbacks =====================================================================
36-
# $scope.onButtonBack = () ->
37-
# $scope.isChartDisplayed = true
38-
3927
# Widget specific methods
4028
# --------------------------------------
4129
w.initContext = ->
@@ -79,9 +67,6 @@ module.controller('WidgetSalesCustomersEngagementCtrl', ($scope, $q, $filter, Im
7967

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

82-
# # Add events callbacks to chart object
83-
# $scope.chart.addSeriesEvent('click', onClickBar)
84-
8570
# Notifies parent element that the chart is ready to be displayed
8671
$scope.chartDeferred.notify($scope.chart)
8772

src/impac-angular.run.coffee

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,33 @@ module.run((ImpacAlerts)->
1111
module.run((editableOptions) ->
1212
editableOptions.theme = 'bs3'
1313
)
14+
15+
module.run((ImpacTheming) ->
16+
Highcharts.theme =
17+
colors: ImpacTheming.get().chartColors.array
18+
chart:
19+
backgroundColor: null
20+
title: style:
21+
fontSize: '16px'
22+
fontWeight: 'bold'
23+
textTransform: 'uppercase'
24+
tooltip:
25+
borderWidth: 0
26+
backgroundColor: 'rgba(219,219,216,0.8)'
27+
shadow: true
28+
legend: itemStyle:
29+
fontWeight: 'bold'
30+
fontSize: '13px'
31+
xAxis:
32+
labels: style: fontSize: '10px'
33+
yAxis:
34+
minorTickInterval: 'auto'
35+
title: style: textTransform: 'uppercase'
36+
labels: style: fontSize: '12px'
37+
plotOptions: candlestick: lineColor: '#404048'
38+
background2: '#F0F0EA'
39+
40+
# Apply the theme
41+
Highcharts.setOptions Highcharts.theme
42+
43+
)

src/services/highcharts-theme/highcharts-theme.svc.coffee

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)