Skip to content

Commit 3a7a201

Browse files
committed
Fix: Make points visible by default for sparse data
- Added pointBorderColor and pointBorderWidth for visible points - Increased pointRadius from 4 to 5 for better visibility - Points now show without hovering when data is sparse (< 10 records) - Hover radius increased to 7 for better interaction
1 parent 8c71507 commit 3a7a201

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

addon/components/widget/api-metrics.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ export default class WidgetApiMetricsComponent extends Component {
8282
borderWidth: 3,
8383
fill: true,
8484
tension: 0.4,
85-
pointRadius: showPoints ? 4 : 0,
86-
pointHoverRadius: 6,
85+
pointRadius: showPoints ? 5 : 0,
8786
pointBackgroundColor: 'rgb(16, 185, 129)',
87+
pointBorderColor: 'rgb(16, 185, 129)',
88+
pointBorderWidth: showPoints ? 2 : 0,
89+
pointHoverRadius: 7,
8890
pointHoverBackgroundColor: 'rgb(16, 185, 129)',
8991
pointHoverBorderColor: '#fff',
9092
pointHoverBorderWidth: 2,
@@ -97,9 +99,11 @@ export default class WidgetApiMetricsComponent extends Component {
9799
borderWidth: 3,
98100
fill: true,
99101
tension: 0.4,
100-
pointRadius: showPoints ? 4 : 0,
101-
pointHoverRadius: 6,
102+
pointRadius: showPoints ? 5 : 0,
102103
pointBackgroundColor: 'rgb(239, 68, 68)',
104+
pointBorderColor: 'rgb(239, 68, 68)',
105+
pointBorderWidth: showPoints ? 2 : 0,
106+
pointHoverRadius: 7,
103107
pointHoverBackgroundColor: 'rgb(239, 68, 68)',
104108
pointHoverBorderColor: '#fff',
105109
pointHoverBorderWidth: 2,

0 commit comments

Comments
 (0)