Documentation

@kanunilabs/datagrid-react-enterprise


@kanunilabs/datagrid-react-enterprise / ChartExportOptions

Interface: ChartExportOptions

Properties

background?

optional background?: string | null

Background colour. Charts are transparent, and a transparent PNG dropped into a dark viewer or a slide deck loses every dark label on it. Pass null to keep transparency deliberately.


fileName?

optional fileName?: string

File name without extension. Default 'chart'.


pixelRatio?

optional pixelRatio?: number

PNG pixel ratio. Default 2 — a chart exported at CSS pixels looks soft the moment it lands in a document, and 2× is the cheapest fix.