Charts & Visualization · jdashboardUI 23.5 · B4J / JavaFX
XY bubble chart where each point has its own X/Y position, size, label and color.
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
- PNG export
- Configurable animation
- Configurable grid / axes
- Configurable title
When to use it
XY bubble chart where each point has its own X/Y position, size, label and color.
Designer Properties
This module does not declare Designer Properties.
Creation and lifecycle
Private JBubbleChart1 As JBubbleChart
JBubbleChart1.Initialize(Me, "JBubbleChart1")
JBubbleChart1.AddToParent(Root, 20dip, 20dip, 640dip, 360dip)
Working example
Dim Labels As List
Labels.Initialize2(Array As String("A", "B", "C"))
Dim X As List
X.Initialize2(Array As Double(10, 30, 55))
Dim Y As List
Y.Initialize2(Array As Double(20, 70, 45))
Dim Sizes As List
Sizes.Initialize2(Array As Double(12, 30, 20))
Dim Colors As List
Colors.Initialize2(Array As Int(0xFF4F46E5, 0xFF06B6D4, 0xFFF59E0B))
Dim Ok As Boolean = JBubbleChart1.SetData(Labels, X, Y, Sizes, 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 |
| ShowGrid | write | Boolean |
| ShowAxes | write | Boolean |
| ShowYAxisValues | write | Boolean |
| ShowValues | write | Boolean |
| Suffix | write | String |
Events
No public events are declared in the analyzed version.
Export and rendering
When the module exposes SaveAsPNG / SavePNG, the rendered control can be saved directly to PNG. Check the returned Boolean when provided.
Source-backed notes for the analyzed version
- SetData requires matching Labels / X / Y / Size / Color lists; sizes must be non-negative.
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)setTextTitle(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)SetTheme(TextColor As Int, GridColor As Int, BackgroundColor As Int)setSuffix(Value As String)SaveAsPNG(Dir As String, FileName As String) As BooleanSetData(Labels As List, XValues As List, YValues As List, Sizes As List, Colors As List) As Boolean
Related components
- JChartRenderer
- JRadarChart