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
Hi there! I was looking at the same TypeScript error and I guess that the orient property is redundant with the global property itself, for example, if we have axisBottom that infers that the orientation is the bottom axis and so on with the other properties. So, in my opinion, the orient property should be removed from the examples.
@NathaEEUD, you're right, it shouldn't be exposed, and if we were to support overriding it, we would have to create different types for horizontal & vertical axes anyway, for example orient='left' would not make sense for an horizontal axis.
Describe/explain the bug
Typescript is complaining that the property "orient" does not exist on axisBottom or axisLeft.
To Reproduce
Go to Nivo Webpage Line
Take the generated code and paste it into your development area. (e.g. Intellij)
Expected behavior
"No typescript error"
Screenshots
context
"@nivo/line": "^0.73.0",
"@nivo/core": "^0.73.0",
Browser: Firefox latest or Chrome latest
The text was updated successfully, but these errors were encountered: