Merge pull request #533 from jktu2870/issue_488

Fix for issue 488
This commit is contained in:
Igor Kulikov 2018-01-16 15:02:41 +02:00 committed by GitHub
commit 9634ecfcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,9 +405,13 @@ export default class TbFlot {
}
}
series.lines = {
fill: keySettings.fillLines === true,
show: this.chartType === 'line' ? keySettings.showLines !== false : keySettings.showLines === true
fill: keySettings.fillLines === true
};
if (this.chartType === 'line' || this.chartType === 'state') {
series.lines.show = keySettings.showLines !== false
} else {
series.lines.show = keySettings.showLines === true;
}
if (angular.isDefined(keySettings.lineWidth)) {
series.lines.lineWidth = keySettings.lineWidth;