You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
<Plotdata={[{type: 'waterfall',x: ['Name 1','Name 2'],y: [15,20],connector: {line: {color: 'red'}}// Cause error: Object literal may only specify known properties, and 'connector' does not exist in type 'Partial<PlotData>'},]}layout={{width: 300height: 150}}/>
The root of the problem seems that only limited number of properties are implemented on Partial<PlotData> - including for instance (as shown in example) the marker: {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.
I fund an other missing property in Partial.
The property value: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: #247
The text was updated successfully, but these errors were encountered: