:sparkles: :bar_chart: :sparkles: BarsView is the latest View I'd like to discuss and hopefully introduce to the JTK. Closely matching the same style as the other Views (PointsView, PixelsView, ContoursView, etc), BarsView allows the user to visualize their data as a bar chart.
Supported Functionality
setBarWidth(float) - Width is set as a fraction
setAlignment(BarsView.Alignment) - Alignment relative to the tick mark (before, center, after)
setStacking(boolean) - Do you want to stack multiple bar charts or have them plot adjacent to one another?
Both orientations
Line (outline of bars) and color styling
Concerns
Data value labels are not supported. Not sure what the answer is to this one, if you have stacked bars how do you want your labels presented?
Stacking bars is great but has no practical use until a Legend is implemented. I thought there was one but I could be mistaken.
Pattern-fill is not supported, which may be using BarsView for print.
Pretty pictures
Who doesn't like pictures?
Stacking example
You can see how a legend would be helpful here...
Example showing vertical orientation with a color model.
Zoom into the same graph.
Overview
:sparkles: :bar_chart: :sparkles:
BarsView
is the latest View I'd like to discuss and hopefully introduce to the JTK. Closely matching the same style as the other Views (PointsView
,PixelsView
,ContoursView
, etc),BarsView
allows the user to visualize their data as a bar chart.Supported Functionality
setBarWidth(float)
- Width is set as a fractionsetAlignment(BarsView.Alignment)
- Alignment relative to the tick mark (before, center, after)setStacking(boolean)
- Do you want to stack multiple bar charts or have them plot adjacent to one another?Concerns
BarsView
for print.Pretty pictures
Who doesn't like pictures?
Stacking example You can see how a legend would be helpful here...
Example showing vertical orientation with a color model. Zoom into the same graph.