Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to get y position of a point/value at an index? #89

Open
himynameisubik opened this issue Nov 6, 2023 · 0 comments
Open

Comments

@himynameisubik
Copy link

himynameisubik commented Nov 6, 2023

With a points array as usual, (how) is it possible to get the y position of a point (for example points[1]) on the linegraph?
I'm trying to draw a line on max and min similar to the Top and BottomAxisLabels examples, but they are (obviously?) just on the top and bottom of the graph "frame".

image

  • And something additional; there seems to be some padding visible however as far as I understood, there should be no padding if Top/BottomAxisLabel is not set?
const points = [
    {
       value: 100,
       date: new Date('2020-01-01')
    },
    {
       value: 200,
       date: new Date('2020-01-01')
    },
    {
       value: 300,
       date: new Date('2020-01-01')
    },
    ...
 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant