Skip to content

Commit 031fe4d

Browse files
authored
Merge pull request #244 from alison985/204_fix_unable_to_save
204 fix unable to save
2 parents 3df714d + 9232134 commit 031fe4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/app/visualizations/chart/chart-editor.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ <h4>{{$index == 0 ? 'Left' : 'Right'}} Y Axis</h4>
285285
ng-bind="options.seriesOptions[name].zIndex + 1"></span>
286286
</td>
287287
<td style="padding: 3px; width: 300px;">
288-
<input placeholder="{{name}}" class="form-control input-sm super-small-input" type="text"
289-
ng-model="options.seriesOptions[name].name">
288+
{{name}}
290289
</td>
291290
<td style="padding: 3px; width: 35px;">
292291
<ui-select ng-model="options.seriesOptions[name].color">

client/app/visualizations/chart/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ function ChartEditor(ColorPalette, clientConfig) {
123123
if (scope.options.globalSeriesType === 'pie') {
124124
const seriesData = scope.queryResult.getData();
125125
scope.form.colorsList = [];
126+
const xColumnName = scope.form.xAxisColumn;
126127
seriesData.forEach((rowOfData) => {
127-
scope.form.colorsList.push(rowOfData.action);
128+
scope.form.colorsList.push(rowOfData[xColumnName]);
128129
});
129130

130131
const colorNames = scope.form.colorsList;

0 commit comments

Comments
 (0)