Technical Support
🟢 Online now
Hello 👋

How can we help you today?
Contact on WhatsApp
B4X Store
jdashboardUI / Charts & Visualization / JChartRenderer
Charts & Visualization

JChartRenderer

Shared rendering engine for horizontal bars, bubbles, candles, radar, pie and diverging bars. This is an advanced infrastructure-level API.

Source
jdashboardUI.b4xlib · Public API only
Store language: en
Reference visual
Documentation reference created from the real component type. It is not an exact screenshot.
REFERENCE
JChartRenderer REFERENCE Item 1Item 2Item 3Item 4Item 5shared renderer modes

Charts & Visualization · jdashboardUI 23.5 · B4J / JavaFX

Shared rendering engine for horizontal bars, bubbles, candles, radar, pie and diverging bars. This is an advanced infrastructure-level API.

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

When to use it

Shared rendering engine for horizontal bars, bubbles, candles, radar, pie and diverging bars. This is an advanced infrastructure-level API.

Designer Properties

This module does not declare Designer Properties.

Creation and lifecycle

Dim R As JChartRenderer
R.Initialize(0) '0 = horizontal bars
R.Create(HostPanel)

Dim Rows As List
Rows.Initialize
Dim Row As Map = CreateMap("label":"Sales", "value":75, "color":0xFF4F46E5)
Rows.Add(Row)
R.SetRows(Rows, Null)
R.SetTitle("Overview")

Working example

Dim R As JChartRenderer
R.Initialize(0) '0 = horizontal bars
R.Create(HostPanel)

Dim Rows As List
Rows.Initialize
Dim Row As Map = CreateMap("label":"Sales", "value":75, "color":0xFF4F46E5)
Rows.Add(Row)
R.SetRows(Rows, Null)
R.SetTitle("Overview")

Normalized B4X properties

Compatible public getX/setX accessors are presented as normal B4X properties. Parameterized accessors remain documented as methods.

There are no simple get/set pairs that map to B4X properties.

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

  • ChartKind values in source: 0 horizontal bars, 1 bubbles, 2 candles, 3 radar, 4 pie, 5 diverging bars.
  • SetRows expects Maps whose keys depend on ChartKind; prefer the higher-level chart wrappers unless you need renderer-level control.

Complete public API

  • Initialize(ChartKind As Int)
  • Create(Base As B4XView)
  • Resize(Width As Float, Height As Float)
  • SetRows(Data As List, AxisLabels As List)
  • SetTitle(Value As String)
  • SetGrid(Value As Boolean)
  • SetAxes(Value As Boolean)
  • SetRounded(Value As Boolean)
  • SetGradient(Value As Boolean)
  • SetGridLevels(Value As Int)
  • SetSpacing(Value As Float)
  • SetXAxisValues(Value As Boolean)
  • SetYAxisValues(Value As Boolean)
  • SetValues(Value As Boolean)
  • SetSuffix(Value As String)
  • SetMaximum(Value As Float)
  • SetColors(Text1 As Int, Grid As Int, BackgroundColor As Int)
  • SetAnimation(Enabled As Boolean, DurationMs As Int)
  • SavePNG(Dir As String, FileName As String) As Boolean
  • JHorizontalBarChart
  • JBubbleChart
  • JCandlestickChart
  • JRadarChart
  • JPieChart
  • JDivergingBarChart