Faceted charts — also known as small multiples — divide a single chart into a grid of panels, each showing a subset of the data. In Taucharts, you create a facet by passing an array toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
x or y instead of a single field name. Each element of the array adds a dimension to the grid: values in x arrays create column facets and values in y arrays create row facets.
y: ['class', 'price'] creates a row for each unique value of class. Within each row the inner dimension price is plotted on the y-axis.
How facets work
Taucharts interprets array values inx and y as a hierarchy:
- The outermost elements (earlier in the array) define the facet panels.
- The innermost element (last in the array) is the actual axis dimension plotted inside each panel.
Real data example
cylinders value and one row per origin value. Each panel is a scatter plot of horsepower (x) against mpg (y).
Configuration
A single field name or an array of field names. When an array is provided, all but the last element define column facet panels; the last element is the x-axis dimension plotted inside each panel.
A single field name or an array of field names. When an array is provided, all but the last element define row facet panels; the last element is the y-axis dimension plotted inside each panel.
Any supported chart type. The facet grid applies the same chart type in every panel.
A data field for color encoding, applied consistently across all panels.
The full dataset. Taucharts partitions it into panels automatically based on the facet dimensions.
Panel labels are derived from the facet dimension values. Use
settings.facetLabelDelimiter to customize the separator character used in compound panel titles.