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
dataobject[]required
Chart data.
Chart data, which must conform to this structure:
Array<{
day: string, // format must be YYYY-MM-DD
value: number
}> You can also add arbitrary data to this structure to be used in tooltips or event handlers.
However, when trying to do so, TypeScript complains that property 'data' does not exist...
The documents https://nivo.rocks/time-range/ explain how one can add arbitrary data to the data object:
However, when trying to do so, TypeScript complains that property 'data' does not exist...
E.g.
TypeScript error:
Property 'data' does not exist on type 'TimeRangeDayData'.
Property 'data' does not exist on type 'CalendarDatum & { coordinates: { x: number; y: number; }; date: Date; firstWeek: number; month: number; year: number; color: string; width: number; height: number; }'.
Indeed types are:
Similarly to other chart types, I would expect that the types get
[key: string]: any
added to them.The text was updated successfully, but these errors were encountered: