Recipes

How to solve a specific problem with Apex components: the decision behind the approach, the code, and what breaks first.

Drill down from a chart into a grid

Click a chart bar and filter a data grid to it: the dataPointSelection payload, mapping an index to a value, and the re-render ordering that breaks first.

  • Charts
  • Grid

Stream live market data into a stock chart

Append ticks to a live candlestick chart without rebuilding it: the forming-bar flag, the rolling window, which indicators stream, and the teardown that leaks.

  • Stock
  • Charts

Put a dashboard's view state in one URL

Put filter, zoom and selection from four products in one shareable link: what belongs in a URL, how to shrink the token, and the restore that picks a wrong row.

  • Charts
  • Grid
  • Gantt
  • Stock

Drill from an org chart into a people grid

Click a manager to fill a grid with their team when the tree loads lazily: what the grid may show, the ids the tree accepts, and a count that is silently wrong.

  • Tree
  • Grid

Ship one locale across a dashboard

Each library translates its own strings and none formats your data. Measured gaps in four locale systems, and one module that switches language and direction.

  • Charts
  • Grid
  • Maps
  • Gantt

Put a live chart in every grid row

apex-grid 4.0 recycles rows, so a chart built once per cell ends up on the wrong account after a sort. Measured fixes, and one element that updates in place.

  • Grid
  • Charts