tremor icon indicating copy to clipboard operation
tremor copied to clipboard

Feature request - dataKey and categories inference

Open dmytro-tinybird opened this issue 3 years ago • 1 comments

Right now, the data has an any[] type, dataKey has a string type, and categories string[] type. And if the values passed to the accessor props aren't keys of data then the chart simply won't render without throwing an error. So, it would be nice to have those accessors be actual keys of the type of data type and see errors if they aren't.

dmytro-tinybird avatar Dec 11 '22 20:12 dmytro-tinybird

hey @dmytro-tinybird, thanks a lot for the PR! Will have a look as soon as I have a bit more time :)

mitrotasios avatar Dec 14 '22 00:12 mitrotasios