Commit 75dec357ec592c4ddc5ec39501d618aee51991b5

Authored by mcrusi
Committed by Igor Kulikov
1 parent f087c3fc

Add ability to set the radius of points displayed on flot timeseries charts (#1988)

@@ -446,7 +446,7 @@ export default class TbFlot { @@ -446,7 +446,7 @@ export default class TbFlot {
446 if (keySettings.showPoints === true) { 446 if (keySettings.showPoints === true) {
447 series.points.show = true; 447 series.points.show = true;
448 series.points.lineWidth = 5; 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 if (this.chartType === 'line' && this.ctx.settings.smoothLines && !series.points.show) { 452 if (this.chartType === 'line' && this.ctx.settings.smoothLines && !series.points.show) {
@@ -1107,6 +1107,11 @@ export default class TbFlot { @@ -1107,6 +1107,11 @@ export default class TbFlot {
1107 "type": "boolean", 1107 "type": "boolean",
1108 "default": false 1108 "default": false
1109 }, 1109 },
  1110 + "showPointsRadius": {
  1111 + "title": "Radius of points",
  1112 + "type": "number",
  1113 + "default": 3
  1114 + },
1110 "tooltipValueFormatter": { 1115 "tooltipValueFormatter": {
1111 "title": "Tooltip value format function, f(value)", 1116 "title": "Tooltip value format function, f(value)",
1112 "type": "string", 1117 "type": "string",
@@ -1159,6 +1164,7 @@ export default class TbFlot { @@ -1159,6 +1164,7 @@ export default class TbFlot {
1159 "showLines", 1164 "showLines",
1160 "fillLines", 1165 "fillLines",
1161 "showPoints", 1166 "showPoints",
  1167 + "showPointsRadius",
1162 { 1168 {
1163 "key": "tooltipValueFormatter", 1169 "key": "tooltipValueFormatter",
1164 "type": "javascript" 1170 "type": "javascript"