Fluxo UIFluxo UIv0.4.1

Mixed Charts & Dashboards

Moving from “one chart per component” to real dashboards: multiple series in one chart, explicit per-series configuration, and coordinating components through shared Variables.

1 · seriesField auto-pivot

One-liner to turn a single y-field into N series by pivoting on another field.

2 · Explicit series[] array

Each series comes from a different column. You hand-pick colour, label, and border width.

3 · Drill-through coordinated dashboard

Chart click writes a Variable; a downstream table reads it back. This is the generic pattern for linked-view dashboards.

Click a bar → filter the table

The chart's onDrillThrough sets selectedRegion to the clicked bar's source row. The table's rowVisibleExpr reads it back. Click the same bar again (or any bar with empty data) to see the no-selection state.

Order
Region
Product
Status
Revenue
ORD-1000EastWater Bottleshipped$689
ORD-1001WestT-Shirtpending$70
ORD-1002EastT-Shirtcancelled$60
ORD-1003WestT-Shirtshipped$357
ORD-1004WestWireless Budspaid$4,942
ORD-1005WestYoga Matpaid$470
ORD-1006EastSneakersshipped$261
ORD-1007SouthSneakerscancelled$738
ORD-1008WestThrow Pillowpending$888
ORD-1009NorthSmart Watchpaid$1,392
ORD-1010EastJacketpaid$440
ORD-1011WestSmart Watchpaid$5,073
ORD-1012NorthWater Bottlepaid$492
ORD-1013SouthJeanspaid$949
ORD-1014SouthSneakerspaid$413
ORD-1015EastJeansrefunded$540
ORD-1016WestT-Shirtcancelled$584
ORD-1017WestDesk Lamppaid$812
ORD-1018EastWater Bottleshipped$588
ORD-1019SouthWireless Budspaid$5,895
ORD-1020EastT-Shirtpaid$936
ORD-1021NorthThrow Pillowshipped$296
ORD-1022EastThrow Pillowpaid$779
ORD-1023EastYoga Matpaid$432
ORD-1024EastCandle Setpaid$71
ORD-1025EastWireless Budspaid$3,080
ORD-1026SouthRunning Shoesshipped$315
ORD-1027EastCandle Setcancelled$728
ORD-1028WestDumbbellsshipped$689
ORD-1029SouthJeanscancelled$915
ORD-1030EastWireless Budspending$3,078
ORD-1031NorthLaptop Procancelled$3,485
ORD-1032SouthCandle Setpaid$585
ORD-1033SouthThrow Pillowpaid$859
ORD-1034SouthUSB Hubcancelled$3,302
ORD-1035SouthWater Bottlepaid$477
ORD-1036WestSmart Watchpaid$1,350
ORD-1037EastWater Bottlepaid$451
ORD-1038WestDumbbellspending$204
ORD-1039NorthRug 5x8pending$1,180
ORD-1040EastJeansshipped$1,188
ORD-1041EastDesk Lampcancelled$697
ORD-1042SouthJeanspaid$72
ORD-1043WestCandle Setpaid$500
ORD-1044NorthCandle Setshipped$779
ORD-1045EastCandle Setrefunded$1,180
ORD-1046NorthYoga Matrefunded$656
ORD-1047WestT-Shirtcancelled$186
ORD-1048EastJacketpaid$1,134
ORD-1049SouthWater Bottleshipped$760
ORD-1050EastSneakerspaid$303
ORD-1051EastCandle Setpaid$122
ORD-1052NorthDesk Lampcancelled$228
ORD-1053EastWater Bottlepending$402
ORD-1054SouthDumbbellspaid$1,060
ORD-1055WestYoga Matpaid$526
ORD-1056WestYoga Matpaid$256
ORD-1057SouthJeansshipped$1,008
ORD-1058WestThrow Pillowpending$341
ORD-1059SouthSmart Watchpaid$3,780
ORD-1060SouthJeansshipped$122
ORD-1061WestT-Shirtpending$1,292
ORD-1062WestLaptop Propaid$3,729
ORD-1063EastRunning Shoespaid$392
ORD-1064SouthSneakersrefunded$852
ORD-1065EastYoga Matpaid$37
ORD-1066EastJacketshipped$960
ORD-1067NorthT-Shirtpaid$684
ORD-1068NorthUSB Hubpaid$2,056
ORD-1069SouthRunning Shoespaid$714
ORD-1070WestRug 5x8paid$1,037
ORD-1071NorthWater Bottlepaid$600
ORD-1072EastWireless Budsrefunded$1,275
ORD-1073WestRunning Shoespaid$216
ORD-1074EastDesk Lamppending$489
ORD-1075WestSmart Watchshipped$2,718
ORD-1076NorthRug 5x8cancelled$688
ORD-1077SouthRunning Shoesrefunded$90
ORD-1078SouthSneakersrefunded$1,501
ORD-1079SouthT-Shirtpending$336

Notes

  • seriesField vs series[]. Use seriesField for auto-pivot from long-format data; use series[] when each series is a different column of wide-format data.
  • Dual y-axes. Per-series yAxisID on Chart.js primitives maps to yAxis / yAxis2 in ChartComponentProps (v1 ships single-axis; use per-series color + scale-tied series for side-by-side scales).
  • Drill value shape. For charts, the drill-through value is the aggregated group row — a synthetic row whose fields are whatever the chart grouped on.
  • Keep the subtitle expression-bound. Echoing the active selection as the chart subtitle is the cheapest way to make a dashboard feel responsive.