In a template, insert a picture as a reference slot.
Place a tag in the alternative text of the picture {d.chartOptions:chart}
with the formatter :chart
. Without :chart
, the attribute {d.chartOptions}
is considered as an image.
Design your JSON dataset by adding an object named chartOptions
. The object must contain ECharts options and your data.
Use the following configuration for a line chart:
Generate the PDF
report.
Build any type of chart, following the documentation below:
Provide the chart configuration within a JSON dataset. The dataset should include:
the chart format
numerical values
extra options
After configuring, the chart is injected as an SVG
image into the document. Refer to the Apache ECharts library for more details.
supported file formats: PDF
, ODT
, ODS
, ODP
, ODG
, DOCX
, XLSX
ODT
to DOCX
/ODT
/PDF
or ODS
to XLSX
/ODS
/PDF
DOCX
to DOCX
/ODT
/PDF
or XLSX
to XLSX
/ODS
/PDF
with the option "hardRefresh": true
, such as { "convertTo": "docx", "hardRefresh": true }
DOCX
to DOCX
or XLSX
to XLSX
without the option "hardRefresh": true
translations are supported: cs
, de
, en
, es
, fi
, fr
, it
, ja
, ko
, pl
, pt-br
, ro
, ru
, si
, th
, zh
chart configuration doesn't support external dependencies (maps, JS scripts)
chart styling (titles, colors, captions, etc.) can only be defined within the JSON dataset
the generated chart is an image, so it's not possible to edit the styling within the template, unlike Native charts