Open chaojian-zhang opened 1 year ago
As a reference, as to "how to use with TypeScript", I find those links provide useful insights:
I fund an other missing property in Partialvalue:number[]
is required for isosurface type (https://plotly.com/javascript/reference/isosurface/). So value
should be value: number | number[] | undefined
Hi, thanks very much for this handy component!
I tried to look at all examples and API docs available but can't figure out how to make use of
connector
among other properties (e.g.measure
) for a Waterfall chart. I wonder whether there is a generic way to pass those parameters or it's just not possible at the moment?This is the code I have:
The root of the problem seems that only limited number of properties are implemented on
Partial<PlotData>
- including for instance (as shown in example) themarker: {color: 'red'}
property - which is NOT relevant to a waterfall chart at all.Actually, due to my limited knowledge with React/TypeScript, I don't even know how to look at the definition of
PlotData
(it looks not available on this repo?) in order to inspect what properties are actually implemented there - would be helpful if anyone can provide some pointers.This might be related to this: https://github.com/plotly/react-plotly.js/issues/247