IFS Marble supports four chart types — bar, line, pie, and funnel — as first-class client constructs. Charts bind to an entity or query and use a consistent property set. They appear alongside lists and groups on pages, and support drill-down navigation when a slice or bar is clicked.
Chart
Comparable to
Purpose
barchart
Chart.js Bar, D3 bar
Comparing values across categories
linechart
Chart.js Line, Recharts Line
Trending over time or ordered categories
piechart
Chart.js Pie/Doughnut
Proportional distribution
funnelchart
Funnel.js, Recharts Funnel
Stage-by-stage conversion / volume drop-off
Common Chart Properties
All four chart types share this core property set:
Property
Type
Description
label
String
Chart title; supports ${Attr} interpolation
filter
Expression
Record filter: filter = [Company = GlobalCompany];
details
Page Reference
Drill-down: clicking a bar/slice navigates to a page
Show crosshair lines on hover (true by default; bar and line only)
centerlabel
Boolean
Show sum total in center (pie and funnel only)
barchart
Syntax
barchart <Name> for <Entity> { label = "<title>"; filter = [<condition>]; details = <PageName>(<args>); collapsed = [<boolean>]; crosshairs = [<boolean>]; visible = [<expression>]; category <CategoryAttr>; -- X-axis / bar groups value <ValueAttr>; -- bar height series <SeriesAttr>; -- optional: multiple bar series emphasis <ColorConstant> = [<expression>];}
barchart SalesPerRegionChart for SalesSummary { label = "Sales by Region"; filter = [FiscalYear = CurrentYear]; category RegionName; value TotalSales; emphasis Complementary3 = [true]; -- all bars blue details = RegionSalesPage("RegionCode eq $[RegionCode]");}-- Multi-series bar chart:barchart BudgetVsActualChart for BudgetSummary { label = "Budget vs. Actual"; category Period; value BudgetAmount; series CategoryType; -- groups bars by CategoryType within each Period}
details Turns Charts into Navigation
Adding details = SomePage(...) to a chart makes every bar/slice clickable. Clicking navigates to a filtered detail page. This is one of the most effective patterns for ERP dashboards — a chart is both a visualization and a navigation entry point.
stackedchart Statistics for PersonInfo { x { label = "Name"; value FirstName; } y { label = "Salary"; value Salary; topn = Count(4); }}
chartsettings — Settings Dialog
“Enables the settings dialog” — a named, reusable configuration block referenced from a chart via chartsettings <Ref>; (see radarchart/stackedchart above), letting end users change which fields drive the X-axis, Y-axis, argument, value, group-by, or color-by at runtime instead of those being fixed at design time.
Both are simple dropdown enablers for the settings dialog — “Argument/Value selector dropdown in the settings dialog. This can be used with Pie Charts.”
xselector/yselector/groupby/colorby not detailed here
XselectorDefinition, YselectorDefinition, GroupByDefinition, and ColorByDefintion (note: misspelled in the grammar itself) are the other four children of chartsettings. They already had some passing vault coverage before this pass and weren’t part of this gap-filling round.
colorpalette
A custom color palette, built by extending one of the design system’s predefined palettes.
Syntax
colorpalette <Name> extends <SystemColorPaletteRef> { columns = <N>; colorvalue "<colorN>"; -- one or more, references a color slot from the base palette}
“Selects the colour of a particular bar depending on the available values in a specified column.” Nests inside a piechart, or inside a chart’s x { }/y { } block.
colorsplit { value <Attr>;}
constantline
“Enables vertical and horizontal line marks in charts” — a fixed reference line (e.g. a target or threshold) drawn across the chart. Nests inside x { } or y { }.
Charts are declared at the file level (alongside lists and groups) and then referenced by name on a page:
-- Chart declaration:barchart SalesChart for SalesSummary { label = "Sales by Month"; category SalesMonth; value TotalAmount;}-- Page placement:page DashboardPage using SalesSummarySet { label = "Sales Dashboard"; arrange { SalesChart; -- chart on the left list RecentOrdersList; -- detail list on the right }}
Patterns & Tips
Pair a Chart with a filter = [...] to Scope Its Data
Without a filter, a chart queries all records in its entity. This can be very slow and produce meaningless aggregations. Always scope to the relevant company, year, or context using filter = [Company = GlobalCompany] or similar.
Use crosshairs = [false] for Cleaner Pie Charts
Crosshairs are useful for bar/line charts but irrelevant for pie/funnel. Set crosshairs = [false] on pie and funnel to avoid a visual artifact.
Chart Data Is Not Live
Charts load data when the page opens. They don’t auto-refresh. If the user modifies records and expects the chart to update, they must reload the page or navigate away and back.
details Page Reference Must Match Chart Entity
The filter arguments in details = SomePage("Attr eq $[Attr]") reference attributes from the chart’s entity (not the page’s entity). Mismatching attributes causes navigation to the detail page with an empty or invalid filter.