Skip to content

Commit

Permalink
fixes axis title for new axis
Browse files Browse the repository at this point in the history
Backports PR #10866

**Commit 1:**
fixes axis title for new axis

* Original sha: 7baa505
* Authored by ppisljar <peter.pisljar@gmail.com> on 2017-03-23T12:27:03Z
  • Loading branch information
elastic-jasper committed Mar 24, 2017
1 parent f3a87de commit bf1afae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ module.directive('vislibSeries', function () {

$scope.changeValueAxis = (index) => {
const series = $scope.vis.params.seriesParams[index];
$scope.updateAxisTitle();
if (series.valueAxis === 'new') {
const axis = $scope.addValueAxis();
series.valueAxis = axis.id;
}
$scope.updateAxisTitle();
};
}
};
Expand Down

0 comments on commit bf1afae

Please sign in to comment.