commit
9634ecfcb5
@ -405,9 +405,13 @@ export default class TbFlot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
series.lines = {
|
series.lines = {
|
||||||
fill: keySettings.fillLines === true,
|
fill: keySettings.fillLines === true
|
||||||
show: this.chartType === 'line' ? keySettings.showLines !== false : keySettings.showLines === 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)) {
|
if (angular.isDefined(keySettings.lineWidth)) {
|
||||||
series.lines.lineWidth = keySettings.lineWidth;
|
series.lines.lineWidth = keySettings.lineWidth;
|
||||||
@ -1016,18 +1020,18 @@ export default class TbFlot {
|
|||||||
"properties": {
|
"properties": {
|
||||||
"showLines": {
|
"showLines": {
|
||||||
"title": "Show lines",
|
"title": "Show lines",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": defaultShowLines
|
"default": defaultShowLines
|
||||||
},
|
},
|
||||||
"fillLines": {
|
"fillLines": {
|
||||||
"title": "Fill lines",
|
"title": "Fill lines",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"showPoints": {
|
"showPoints": {
|
||||||
"title": "Show points",
|
"title": "Show points",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"tooltipValueFormatter": {
|
"tooltipValueFormatter": {
|
||||||
"title": "Tooltip value format function, f(value)",
|
"title": "Tooltip value format function, f(value)",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user