Charts & Visualization · jdashboardUI 23.5 · B4J / JavaFX
Radar/spider chart with multiple axes and series, fill, configurable maximum and vertex hit support.
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
- Gradients
- Configurable title
- Multiple series
When to use it
Radar/spider chart with multiple axes and series, fill, configurable maximum and vertex hit support.
Designer Properties
| Property | Type | Default | Description |
|---|---|---|---|
| Animate | Boolean | False |
|
| Duration | Int | 800 |
|
| ShowValues | Boolean | False |
|
| ValueSuffix | String | `` | |
| UseGradient | Boolean | False |
|
| GridLines | Int | 4 |
Creation and lifecycle
Private JRadarChart1 As JRadarChart
JRadarChart1.Initialize(Me, "JRadarChart1")
JRadarChart1.AddToParent(Root, 20dip, 20dip, 640dip, 360dip)
Working example
JRadarChart1.SetAxes(Array As String("Speed", "Quality", "Price", "UX", "Support"))
JRadarChart1.AddSeries("Product A", Array As Double(80, 65, 90, 75, 70), 0xFF4F46E5, 0x554F46E5)
JRadarChart1.AddSeries("Product B", Array As Double(60, 85, 70, 88, 82), 0xFF06B6D4, 0x5506B6D4)
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 |
| Gradient | write | Boolean |
| Maximum | write | Float |
Events
VertexClick (SeriesName As String, Index As Int)
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
- SetAxes defines the radar dimensions; AddSeries appends named series with line and fill colors.
Complete public API
Initialize(CallbackObject As Object, EventNameValue 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)SetAxes(Labels As List)AddSeries(Name As String, Values As List, LineColor As Int, FillColor As Int)setTextTitle(Value As String)setShowGrid(Value As Boolean)setShowAxes(Value As Boolean)setShowYAxisValues(Value As Boolean)setShowValues(Value As Boolean)setSuffix(Value As String)setGradient(Value As Boolean)setMaximum(Value As Float)setAnimation(Enabled As Boolean, DurationMs As Int)SetTheme(TextColor As Int, GridColor As Int, BackgroundColor As Int)SaveAsPNG(Dir As String, FileName As String) As BooleanVertexClick(SeriesName As String, Index As Int) As Boolean
Related components
- JMultiLineChart
- JChartRenderer