Skip to content

Commit

Permalink
fixed default values for color pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanF committed Jun 8, 2016
1 parent b9b5898 commit bc2a558
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion public/health_metric_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ define(function (require) {
fontSize: 60,
invertScale: false,
redThreshold: 0,
greenThreshold: 0
greenThreshold: 0,
redColor: "#fd482f",
yellowColor: "#ffa500",
greenColor: "#6dc066"
},
editor: require('plugins/health_metric_vis/health_metric_vis_params.html')
},
Expand Down
6 changes: 3 additions & 3 deletions public/health_metric_vis_params.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
</div>
<div class="form-group">
<label>Green color:</label>
<input type="color" value="#6dc066" ng-model="vis.params.greenColor" class="form-control"/>
<input type="color" ng-model="vis.params.greenColor" class="form-control"/>
</div>
<div class="form-group">
<label>Yellow color:</label>
<input type="color" value="#ffa500" ng-model="vis.params.yellowColor" class="form-control"/>
<input type="color" ng-model="vis.params.yellowColor" class="form-control"/>
</div>
<div class="form-group">
<label>Red color:</label>
<input type="color" value="#fd482f" ng-model="vis.params.redColor" class="form-control"/>
<input type="color" ng-model="vis.params.redColor" class="form-control"/>
</div>

0 comments on commit bc2a558

Please sign in to comment.