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

Line graph with binary data [Graph2D] #1785

Open
Beregit opened this issue Apr 4, 2024 · 0 comments
Open

Line graph with binary data [Graph2D] #1785

Beregit opened this issue Apr 4, 2024 · 0 comments

Comments

@Beregit
Copy link

Beregit commented Apr 4, 2024

I'm looking to create a line graph like the following one but I think that Graph2D does not allow it.

image

I've done the following chart by inserting points with the opposite value 1 second before the real one and using interpolation: false option but this is cheating.

image
      {
        content: "item 0.0",
        x: new Date("2013-04-20 00:00:00"),
        y: 0,
        group: 1,
      },
      {
        content: "item 1.0",
        x: new Date("2013-04-20 10:00:00"),
        y: 0,
        group: 1,
      },
      {
        content: "item 1.1",
        x: new Date("2013-04-20 10:00:01"),
        y: 1,
        group: 1,
      },
      {
        content: "item 2.1",
        x: new Date("2013-04-20 15:00:00"),
        y: 1,
        group: 1,
      },
      {
        content: "item 2.0",
        x: new Date("2013-04-20 15:00:01"),
        y: 0,
        group: 1,
      },
      {
        content: "item 3.0",
        x: new Date("2013-04-20 20:00:00"),
        y: 0,
        group: 1,
      },
    ]
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