The Dynamic Chart Visualizer is a Business Central control add-in that integrates with Google Charts to provide interactive and customizable data visualizations.
Users can select any table, define X and Y axes, choose a chart type, and instantly render dynamic charts inside Business Central.
Here’s how the Dynamic Chart Visualizer looks inside Business Central:
- ✅ Embed Google Charts directly inside Business Central.
- ✅ Select any table and choose fields for X-axis and Y-axis.
- ✅ Supports multiple chart types: Bar, Pie, 3D Pie, Line (default).
- ✅ Fully responsive (charts redraw when page is resized).
- ✅ Simple ControlAddIn + AL page integration.
src/
├── Startup.js # Initializes control and loads Google Charts
└── Script.js # Renders charts dynamically
pages/
├── DynamicChartVisualizer.ControlAddIn.al # AL ControlAddIn definition
└── DynamicChartVisualizer.Page.al # AL Page for selecting data and chart rendering
- Select a record (table) → Choose which Business Central table to visualize.
- Choose fields → Pick X-axis and Y-axis fields from that table.
- Select chart type → Bar, Pie, or 3D Pie.
- Click "Load Chart" → Data is passed from AL to the control add-in.
- Google Charts renders the chart dynamically in Business Central.
- Record:
Customer - X-Axis:
Customer Name - Y-Axis:
Balance (LCY) - Chart Type:
Bar Chart
A Bar Chart showing customer balances with names on the X-axis.
controladdin "Dynamic Chart Visualizer"
{
StartupScript = 'src/startup.js';
Scripts = 'src/script.js', 'https://www.gstatic.com/charts/loader.js';
HorizontalStretch = true;
VerticalStretch = true;
RequestedHeight = 500;
RequestedWidth = 800;
event ControlReady();
procedure RunSomeCode(Data: JsonArray; ChartCaption: Text; ChartType: Integer);
}- AL Language → Business Central extension development
- Google Charts → Visualization library
- JavaScript → Chart rendering logic
- 📊 Visualizing sales by month, customer balances, inventory levels, etc.
- ⚡ Allowing users to create ad-hoc reports and charts directly inside BC.
- 🔄 Replacing static charts with interactive and responsive visualizations.
This project is open-source and available under the MIT License.
You are free to use.
