Skip to content

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

Description

@himynameisubik

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')
    },
    ...
 ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions