Share My Creation SithasoMPACharts: Native Android Charts for B4A Developers eBook

cover_500.png


Hi everyone,

I am pleased to share the complete developer guide for SithasoMPACharts — 11 Chapters + 4 Appendices (329 pages) dedicated to building fast, themed native Android charts and production dashboards in B4A using the direct DataSet API (no JSON boilerplate, full Visual Designer support).

Every cookbook recipe pairs a live Android screenshot from the 127-example demo app alongside the exact working B4X code.

What the Book Covers
  • Part I — Foundations (Chapters 1–3): The mental model (`ChartHostView` & `renderIfReady`), chart anatomy reference, and decision trees for picking the right visualization.
  • Part II — Grouped Chart Cookbooks (Chapters 4–7):
    • Ch 4 — Cartesian Charts (40 examples): Line, cubic/stepped area, vertical & horizontal bars, grouped & stacked columns, pill corners, dual axes, limit lines.
    • Ch 5 — Circular, Polar & Multivariate (9 examples): Pie, donut with center text, half-donut KPIs, slice leader lines, polar area, Nightingale rose, radar.
    • Ch 6 — Radial Gauges & Progress Rings (11 examples): Concentric rings, 270° gauges, ring-end labels, gradient strokes, dashed rings, realtime radial updates.
    • Ch 7 — Relationship, Hybrid & Financial (9 examples): Scatter, multi-shape bubbles, Candlestick (OHLC), and Bar + Line + Scatter Combo charts.
  • Part III — Professional Features (Chapters 8–10):
    • Ch 8 — Theme Galleries (54 illustrated examples): Default, Nightfall, Nightfall Dark, Cyberpunk, Material, Pastel, and Liberty palettes.
    • Ch 9 — Interactions & Realtime Streaming: Click/long-press/pan/zoom events, pill markers, animations, and live streaming timers.
    • Ch 10 — Advanced Configuration: Axes chrome, formatters, layout offsets, custom markers, and performance tuning across 229 designer properties.
  • Part IV — Production (Chapter 11): Multi-chart dashboards, data mappers, config objects, ScrollView scrolling, image export, and required R8/ProGuard keep rules.
  • Appendices (A–D): Complete generated API Reference, Migration Guide, Troubleshooting Cookbook, and Version History.

Quick Start (DataSet API)
In #Region Project Attributes, include both required dependencies:
B4X: Copy
#Region Project Attributes
    #AdditionalJar: mpChartLib
    #AdditionalJar: kotlin-stdlib-2.0.21
#End Region

Render a chart in minutes:
B4X: Copy
Private Chart As SithasoMPACharts

Sub Activity_Create(FirstTime As Boolean)
    Chart.Initialize("Chart")
    Activity.AddView(Chart, 0, 0, 100%x, 100%y)

    Chart.BeginUpdate
    Chart.ChartType = Chart.CHART_LINE
    Chart.Title = "Revenue"
    Chart.ShowTitle = True

    Dim DS0 As Int = Chart.AddDataSet("Revenue", 0)
    Chart.AddLabels(Array As String("Jan", "Feb", "Mar"))
    Chart.AddValues(DS0, Array As Double(12, 19, 15))
    Chart.EndUpdate
End Sub

Included Formats & Distribution
  • Book Formats: PDF, EPUB, HTML, and DOCX
  • Library & Demo Package: `SithasoMPACharts.jar`/`.xml` (`v10.19`), dependencies, `PROGUARD.txt`, full 127-example B4A demo source, and standalone demo APK

Download / Links:

Feedback, questions, and showcase screenshots are welcome below!

SithasoMPACharts is a DonationWare charting framework based on MPAAndroid Charts version 4.
 
Last edited:
Back
Top