Charts & Visualization · jdashboardUI 23.5 · B4J / JavaFX
Horizontal diverging bars centered around zero for positive/negative comparisons.
The image shown on this page is a documentation reference visual. It is not intended to be a pixel-perfect screenshot; the real result depends on size, theme, colors and data.
Highlights
- Configurable animation
- Configurable grid / axes
- Configurable title
When to use it
Horizontal diverging bars centered around zero for positive/negative comparisons.
Designer Properties
This module does not declare Designer Properties.
Creation and lifecycle
Private JDivergingBarChart1 As JDivergingBarChart
JDivergingBarChart1.Initialize(Me, "JDivergingBarChart1")
JDivergingBarChart1.AddToParent(Root, 20dip, 20dip, 640dip, 360dip)
Working example
Dim Labels As List
Labels.Initialize2(Array As String("North", "South", "West", "East"))
Dim Values As List
Values.Initialize2(Array As Double(42, -25, 18, -35))
Dim Colors As List
Colors.Initialize2(Array As Int(0xFF22C55E, 0xFFEF4444, 0xFF22C55E, 0xFFEF4444))
JDivergingBarChart1.SetData(Labels, Values, Colors)
Normalized B4X properties
Compatible public getX/setX accessors are presented as normal B4X properties. Parameterized accessors remain documented as methods.
| Property | Access | Type |
|---|---|---|
| TextTitle | write | String |
| Suffix | write | String |
| ShowGrid | write | Boolean |
| ShowAxes | write | Boolean |
| ShowYAxisValues | write | Boolean |
| ShowValues | write | Boolean |
| Maximum | write | Float |
| BarSpacing | write | Float |
| RoundedBars | write | Boolean |
Events
No public events are declared in the analyzed version.
Export and rendering
This component does not expose a public PNG export function in the analyzed version.
Source-backed notes for the analyzed version
- The API below was extracted from the actual module source.
Complete public API
Initialize(Callback As Object, EventName As String)AddToParent(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)DesignerCreateView(Base As Object, Lbl As Label, Props As Map)SetData(Labels As List, Values As List, Colors As List) As BooleansetTextTitle(Value As String)setSuffix(Value As String)setShowGrid(Value As Boolean)setShowAxes(Value As Boolean)setShowYAxisValues(Value As Boolean)setShowValues(Value As Boolean)setAnimation(Enabled As Boolean, DurationMs As Int)setMaximum(Value As Float)setBarSpacing(Value As Float)setRoundedBars(Value As Boolean)SetTheme(TextColor As Int, GridColor As Int, BackgroundColor As Int)
Related components
- JHorizontalBarChart
- JChartRenderer