Background
Thanks to PR #20, PureChart supports pretty cool box plots! However, they are quite limited - for example, only one dataset may be displayed on one set of axes. Since our goal is to make PureChart as flexible as possible, we would like to add the ability to generate box plots for several data sets in one chart.
Goal
Modify box_plot to take an argument containing one or more datasets and display them horizontally stacked using the same x-axis. The scales must match so that users can compare datasets!
Argument Formatting
Right now, we expect the data argument to be formatted like this -
[
{
value: 1
},
{
value: 100
},
{
value: 125
},
{
value: 150
},
{
value: 155
},
{
value: 160
}
]
We would like to modify it to be a list of hashes, each of which corresponds to a dataset. That may look something like this -
[
{
name: "Dogs per Household",
data: [2, 1, 0, 0, 1, 0, 3, 4, 2, 1, 2]
},
{
name: "Cats per Household",
data: [1, 2, 1, 0, 1, 0, 5, 1, 0, 1, 2]
},
...
]
Visually, the result should look something like the one below. Note that...
- There is no styling yet - will be addressed by separate issue
- There is no axis - will be addressed by separate
Good luck 🫡
Background
Thanks to PR #20, PureChart supports pretty cool box plots! However, they are quite limited - for example, only one dataset may be displayed on one set of axes. Since our goal is to make PureChart as flexible as possible, we would like to add the ability to generate box plots for several data sets in one chart.
Goal
Modify
box_plotto take an argument containing one or more datasets and display them horizontally stacked using the same x-axis. The scales must match so that users can compare datasets!Argument Formatting
Right now, we expect the
dataargument to be formatted like this -We would like to modify it to be a list of hashes, each of which corresponds to a dataset. That may look something like this -
Visually, the result should look something like the one below. Note that...
Good luck 🫡