victory icon indicating copy to clipboard operation
victory copied to clipboard

VictoryArea interpolation type issue

Open pmilic021 opened this issue 5 years ago • 0 comments

Bugs and Questions

Checklist

  • [x] This is not a victory-native specific issue. (Issues that only appear in victory-native should be opened here)

  • [x] I have read through the FAQ and Guides before asking a question

  • [x] I am using the latest version of Victory

  • [x] I've searched open issues to make sure I'm not opening a duplicate issue

The Problem

This is a type issue. VictoryLine and VictoryArea support preset of interpolations as well as a custom implementation of interpolation function. VictoryLine has no issues, but VictoryArea type only states that the preset is supported while the custom implementation indeed also works! (just requires type "hack").

The fix should be as simple as fixing the types file and I would be more than happy to make a PR for this.

Reproduction

Here is the image of the issue image

and the "hack" (doesn't necessarily has to be natural) image

pmilic021 avatar May 26 '21 14:05 pmilic021