Skip to content

Commit

Permalink
chore: add scatterplot story
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Nov 19, 2024
1 parent 4bd3730 commit 8beadbf
Show file tree
Hide file tree
Showing 2 changed files with 25,955 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/__demo__/ScatterPlotDebug.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React, { useEffect, useRef } from 'react'
import {
extraOptions,
responses,
visualization,
} from '../__fixtures__/scatterplotData.js'
import { createVisualization } from '../index.js'

export default {
title: 'ScatterPlot',
}

export const Default = () => {
const ref = useRef(null)

useEffect(() => {
createVisualization(
responses,
visualization,
ref.current,
extraOptions,
undefined,
undefined,
'highcharts'
)
}, [])

return (
<div
style={{
width: 800,
height: 800,
border: '2px solid magenta',
}}
ref={ref}
></div>
)
}
Loading

0 comments on commit 8beadbf

Please sign in to comment.