The export-to plugin adds an export menu to the chart that lets users save the chart in two formats: a PNG image rendered from the chart’s SVG, and a CSV file containing the chart’s data. The PNG export uses the canvg library to rasterize the SVG. The CSV export supports configuring the field separator and which columns to include or exclude.Documentation 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.
Usage
Settings
Font size in pixels used when rendering text in the exported PNG image. Adjust this if the default text size looks too small or large in the exported file.
Padding in pixels added to the top of the exported PNG canvas. Useful when the chart title or legend is clipped during rasterization.
Background color of the exported PNG image as a CSS color string. The SVG chart itself has a transparent background by default, so set this to
'#ffffff' (or another color) to produce an opaque image suitable for documents and presentations.The field delimiter used in the exported CSV file. Common values are
',' for comma-separated values and '\t' for tab-separated values.An explicit list of fields to include in the CSV export. When provided, only these fields appear as columns in the output. When omitted, all fields from the data source are included.
Additional fields to append to the default set of exported columns. Use this to add computed or metadata columns that are not in the raw data source.
A list of field names to remove from the CSV export. Use this to hide internal or irrelevant fields without enumerating all the fields you want to keep.
Controls whether the export button is rendered in the chart. Set to
false to hide the button while keeping the plugin registered (for example, to trigger exports programmatically).PNG export
PNG export rasterizes the chart SVG using canvg and saves the result with FileSaver.js. The exported image captures the chart exactly as it appears on screen.The
canvg library must be available in your build for PNG export to work. If you are loading Taucharts via npm, canvg is listed as a peer dependency and must be installed separately.CSV export
CSV export serializes the chart’s data to a delimited text file. By default all fields in the data source are exported. UseexportFields, appendFields, and excludeFields to control the output columns.