For a project I am working on, I would like to display data as a continually updating double sided bar chart (or double sided histogram) in JavaFX. I have successfully created a horizontal bar chart where the bars extend from only one side of axis, but not from both sides.
An example of what I want to do would be, on a chart, each row (or bar) represents a store, the left side represents what percentage is currently female and the right the percentage currently male. As customers enter and leave the store, this chart updates to show current gender percentage, with it always adding up to 100% unless there are no customers. In which case there is no bar. This means that, unless there are no customers, the bar will always be the same length, just shifted to each side. The whole chart shows maybe 5 different stores, so has five different bars with gender representations.
I don’t have enough reputation to post an image so here is a link to what I want it to look like.
This is a link that looks like what I can currently make.