Browse Source

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

pull/1992/head
mcrusi 7 years ago
committed by Igor Kulikov
parent
commit
75dec357ec
  1. 8
      ui/src/app/widget/lib/flot-widget.js

8
ui/src/app/widget/lib/flot-widget.js

@ -446,7 +446,7 @@ export default class TbFlot {
if (keySettings.showPoints === true) {
series.points.show = true;
series.points.lineWidth = 5;
series.points.radius = 3;
series.points.radius = angular.isDefined(keySettings.showPointsRadius) ? keySettings.showPointsRadius : 3;
}
if (this.chartType === 'line' && this.ctx.settings.smoothLines && !series.points.show) {
@ -1107,6 +1107,11 @@ export default class TbFlot {
"type": "boolean",
"default": false
},
"showPointsRadius": {
"title": "Radius of points",
"type": "number",
"default": 3
},
"tooltipValueFormatter": {
"title": "Tooltip value format function, f(value)",
"type": "string",
@ -1159,6 +1164,7 @@ export default class TbFlot {
"showLines",
"fillLines",
"showPoints",
"showPointsRadius",
{
"key": "tooltipValueFormatter",
"type": "javascript"

Loading…
Cancel
Save