Skip to content

Commit

Permalink
fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatkat committed Oct 12, 2024
1 parent 144c265 commit 7e67ac6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function ScatterPlot({ centroids, clusters }: ScatterPlotProps) {
tooltip: {
pointFormat: 'Red: {point.x}</br>Green: {point.y}</br>Blue: {point.z}',
},
series: [...clusters.map((cluster, index) => {
series: [...clusters.map((cluster, index): Highcharts.SeriesScatter3dOptions => {
return {
name: `Cluster ${index + 1}`,
color: `rgba(${centroids[index]}, 1)`,
Expand Down Expand Up @@ -113,7 +113,7 @@ export default function ScatterPlot({ centroids, clusters }: ScatterPlotProps) {
symbol: 'diamond',
},
zIndex: 1000,
}]
} as Highcharts.SeriesScatter3dOptions]
}
}, [centroids, clusters, alpha, beta, viewDistance]);

Expand Down

0 comments on commit 7e67ac6

Please sign in to comment.