Commit 75dec357ec592c4ddc5ec39501d618aee51991b5
Committed by
Igor Kulikov
1 parent
f087c3fc
Add ability to set the radius of points displayed on flot timeseries charts (#1988)
Showing
1 changed file
with
7 additions
and
1 deletions
... | ... | @@ -446,7 +446,7 @@ export default class TbFlot { |
446 | 446 | if (keySettings.showPoints === true) { |
447 | 447 | series.points.show = true; |
448 | 448 | series.points.lineWidth = 5; |
449 | - series.points.radius = 3; | |
449 | + series.points.radius = angular.isDefined(keySettings.showPointsRadius) ? keySettings.showPointsRadius : 3; | |
450 | 450 | } |
451 | 451 | |
452 | 452 | if (this.chartType === 'line' && this.ctx.settings.smoothLines && !series.points.show) { |
... | ... | @@ -1107,6 +1107,11 @@ export default class TbFlot { |
1107 | 1107 | "type": "boolean", |
1108 | 1108 | "default": false |
1109 | 1109 | }, |
1110 | + "showPointsRadius": { | |
1111 | + "title": "Radius of points", | |
1112 | + "type": "number", | |
1113 | + "default": 3 | |
1114 | + }, | |
1110 | 1115 | "tooltipValueFormatter": { |
1111 | 1116 | "title": "Tooltip value format function, f(value)", |
1112 | 1117 | "type": "string", |
... | ... | @@ -1159,6 +1164,7 @@ export default class TbFlot { |
1159 | 1164 | "showLines", |
1160 | 1165 | "fillLines", |
1161 | 1166 | "showPoints", |
1167 | + "showPointsRadius", | |
1162 | 1168 | { |
1163 | 1169 | "key": "tooltipValueFormatter", |
1164 | 1170 | "type": "javascript" | ... | ... |