-
Notifications
You must be signed in to change notification settings - Fork 31
[IMPAC-698] Add widget average spend per customer #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: lmi-insights
Are you sure you want to change the base?
Conversation
xaun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey looks good, just need to fix the data-not-found directive
|
|
||
| $scope.chart = new HighchartsFactory($scope.chartId(), w.content.chart, options) | ||
|
|
||
| $scope.chart.formatters = -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To save some lines, you can assign the result to a variable, and then mutate the object and return that.
defaultFormatters = $scope.chart.formatters()
$scope.chart.formatters = ->
defaultFormatters.xAxis = { new: 'opts' }
...
defaultFormatters
| </div> | ||
|
|
||
| <!-- No data found --> | ||
| <div ng-if="(isDataFound==false)" common-data-not-found on-display-alerts="onDisplayAlerts()" endpoint="::widget.category" width="::widget.width" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the old implementation of the data-not-found directive. I know the generator created it, but its out of date. I updated this in the generator in v1.6.9 but the lmi feature branch is behind.
The data-not-found is now a modal, so no need to show/hide content on $scope.isDataFound. Replace this directive with: <div ng-show="widget.demoData" common-data-not-found />.
Take a look at cash projection template for example, test with a bolt widget for org with no bolt data.
|
Also @manu-d, the JIRA says to load a generic Highcharts template? |
No description provided.