From b3a03518a04b1f0035f71d61e0f6961155dccec7 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 5 Feb 2024 00:56:00 +0900 Subject: [PATCH] Fix none shape in chart node --- nodes/widgets/ui_chart.html | 2 +- ui/src/widgets/ui-chart/UIChart.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/widgets/ui_chart.html b/nodes/widgets/ui_chart.html index bc97a749..683eb7a7 100644 --- a/nodes/widgets/ui_chart.html +++ b/nodes/widgets/ui_chart.html @@ -166,7 +166,7 @@ { value: 'rectRot', label: 'Rotated Rectangle' }, { value: 'star', label: 'Star' }, { value: 'triangle', label: 'Triangle' }, - { value: false, label: 'None' } + { value: 'false', label: 'None' } ] }] }) diff --git a/ui/src/widgets/ui-chart/UIChart.vue b/ui/src/widgets/ui-chart/UIChart.vue index 137f08da..c2510306 100644 --- a/ui/src/widgets/ui-chart/UIChart.vue +++ b/ui/src/widgets/ui-chart/UIChart.vue @@ -249,7 +249,7 @@ export default { const radius = this.props.pointRadius ? this.props.pointRadius : 4 this.chart.data.datasets.push({ borderColor: this.props.colors[datalabels.length], - pointStyle: this.props.pointShape || 'circle', + pointStyle: this.props.pointShape === 'false' ? false : this.props.pointShape || 'circle', pointRadius: radius, pointHoverRadius: radius * 1.25, label,