I have a list of tuples. Each tuple is a low and high value indicating a range.
What I would like to do is specify a range by giving a starting value and an ending value. I would like to generate a bar showing where within that range the tuple ranges exist. I don't know what this type of graph is called.
In my use, none of the tuples would overlap each other.
I would be using the bar as part of a web page.
Some nice to haves would be:
- Show the range values on mouseover
- Clicking the range should trigger an action
- Being able to specify different colors to show multiple lists of range tuples on the same bar.
e.g.
I have the following list: [(10, 20), (40,60), (70,80)]
I want to show where these ranges exist on a bar that starts with the value 0 and ends at the value 100.
I've attached an image of what I would like the bar to look like.
Is there anything prebuilt out there that can do this? How would I go about doing something like this?
What I would like to do is specify a range by giving a starting value and an ending value. I would like to generate a bar showing where within that range the tuple ranges exist. I don't know what this type of graph is called.
In my use, none of the tuples would overlap each other.
I would be using the bar as part of a web page.
Some nice to haves would be:
- Show the range values on mouseover
- Clicking the range should trigger an action
- Being able to specify different colors to show multiple lists of range tuples on the same bar.
e.g.
I have the following list: [(10, 20), (40,60), (70,80)]
I want to show where these ranges exist on a bar that starts with the value 0 and ends at the value 100.
I've attached an image of what I would like the bar to look like.
Is there anything prebuilt out there that can do this? How would I go about doing something like this?