DHTMLX Pivot MCP server: configuration, aggregation, and export
DHTMLX Pivot turns one configuration object into a fully aggregated table, and opens onto a whole second API, the underlying Table widget, for exporting data or expanding tree rows. Layout changes and full table redraws each trigger their own event: a layout edit fires one, while every redraw underneath fires the other. Getting all of that right depends on current documentation, not a stale guess.
Query the DHTMLX MCP server instead: it returns the current config shape, the export path through getTable(), and the right event to use for persistence, so the assistant generates code that matches how Pivot actually behaves today.
MCP endpoint
https://docs.dhtmlx.com/mcp
The DHTMLX MCP server covers all major DHTMLX products, not only DHTMLX Pivot. The same endpoint and configuration instructions work regardless of which DHTMLX component you are building with.
What Pivot developers ask the MCP server
The MCP server can tell you nearly everything about DHTMLX Pivot's documentation, starting with:
- Looking up the current API for methods, events, and properties, including the Event Bus and state methods.
- Generating ready-to-run initialization code with the
fields,data, andconfigshape a specific table needs. - Defining rows, columns, and values in the
configproperty, including both accepted forms of avaluesentry. - Choosing or writing aggregation methods, from the built-in
sum/count/averageset to a custom one added through themethodsproperty. - Pre-processing data with predicates before aggregation, such as grouping dates by month.
- Sizing, freezing, and templating table cells through
tableShapeandheaderShape, including tree mode and frozen columns. - Localizing labels and date/number formats, and styling the table with
--wx-pivot-*CSS variables. - Exporting a table to CSV or XLSX through the Table instance that
getTable()returns. - Deciding between
update-configandrender-tablewhen persisting state to a server, or integrating Pivot with React, Vue, Angular, and Svelte.