Skip to content

Commit

Permalink
Merge pull request #244 from alison985/204_fix_unable_to_save
Browse files Browse the repository at this point in the history
204 fix unable to save
  • Loading branch information
alison985 authored Sep 1, 2017
2 parents 3df714d + 9232134 commit 031fe4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/app/visualizations/chart/chart-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ <h4>{{$index == 0 ? 'Left' : 'Right'}} Y Axis</h4>
ng-bind="options.seriesOptions[name].zIndex + 1"></span>
</td>
<td style="padding: 3px; width: 300px;">
<input placeholder="{{name}}" class="form-control input-sm super-small-input" type="text"
ng-model="options.seriesOptions[name].name">
{{name}}
</td>
<td style="padding: 3px; width: 35px;">
<ui-select ng-model="options.seriesOptions[name].color">
Expand Down
3 changes: 2 additions & 1 deletion client/app/visualizations/chart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ function ChartEditor(ColorPalette, clientConfig) {
if (scope.options.globalSeriesType === 'pie') {
const seriesData = scope.queryResult.getData();
scope.form.colorsList = [];
const xColumnName = scope.form.xAxisColumn;
seriesData.forEach((rowOfData) => {
scope.form.colorsList.push(rowOfData.action);
scope.form.colorsList.push(rowOfData[xColumnName]);
});

const colorNames = scope.form.colorsList;
Expand Down

0 comments on commit 031fe4d

Please sign in to comment.