diff --git a/bun.lockb b/bun.lockb index fd0515a745bf901a54d4f7d10c4bbeaff8491bba..940f4e730ff3167f7d9b8970042bcf5c162ccefc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 0acdf8f0bc650295b52a86e4728aa2b11ea968a8..952d9e65d6836b17c38af881cfac91f71fd6b9e8 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@types/cytoscape": "^3.21.8", "@types/object-hash": "^3.0.6", "@types/react-grid-layout": "^1.3.5", + "@types/react-plotly.js": "^2.6.3", "@types/styled-components": "^5.1.34", "@types/supercluster": "^7.1.3", "autoprefixer": "^10.4.20", diff --git a/src/lib/vis/visualizations/vis1D/Vis1D.tsx b/src/lib/vis/visualizations/vis1D/Vis1D.tsx index 5a8f17ac60462b4ddafe916f8b2f035714cf507b..fef9377a415a374969c4dc8000d8815e8f9bb39d 100644 --- a/src/lib/vis/visualizations/vis1D/Vis1D.tsx +++ b/src/lib/vis/visualizations/vis1D/Vis1D.tsx @@ -169,6 +169,7 @@ const Vis1DSettings = ({ settings, graphMetadata, updateSettings }: Visualizatio <Input className="w-full text-justify justify-start mb-2" type="dropdown" + label="" value={settings.selectedEntity} options={graphMetadata.nodes.labels} onChange={val => updateSettings({ selectedEntity: val as string })} @@ -190,9 +191,9 @@ const Vis1DSettings = ({ settings, graphMetadata, updateSettings }: Visualizatio <Input type="dropdown" label="Chart" - value={settings.plotType} + value={settings.plotType as string} options={mutablePlotTypes} - onChange={(value: string | number) => { + onChange={value => { updateSettings({ plotType: value as (typeof plotTypeOptions)[number] }); if (value === 'bar' || value === 'histogram' || value === 'pie') { updateSettings({ yAxisLabel: '' }); diff --git a/src/lib/vis/visualizations/vis1D/components/CustomChartPlotly.tsx b/src/lib/vis/visualizations/vis1D/components/CustomChartPlotly.tsx index 690b221b17a1788bef6406828b831e9d0da964c1..8f72a93d015cb05d05a76c3d7786029d334ad218 100644 --- a/src/lib/vis/visualizations/vis1D/components/CustomChartPlotly.tsx +++ b/src/lib/vis/visualizations/vis1D/components/CustomChartPlotly.tsx @@ -1,7 +1,6 @@ import { visualizationColors } from '@/config'; import React, { useRef, useEffect, useState } from 'react'; import Plot from 'react-plotly.js'; -import { Tooltip, TooltipContent, TooltipTrigger } from '@/lib/components/tooltip'; import { PlotType } from 'plotly.js'; import { scaleOrdinal, scaleLinear, scaleQuantize } from 'd3'; @@ -537,7 +536,6 @@ export const preparePlotData = ( }, hoverlabel: { bgcolor: 'rgba(255, 255, 255, 0.8)', - className: 'text-dark', bordercolor: 'rgba(0, 0, 0, 0.2)', font: { family: 'Inter',