Insert a line chart into a document
Step 1: Insert a picture
In a template, insert a picture as a reference slot.
Step 2: Insert a tag
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.
Step 3: Prepare JSON data
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:
Step 4: Generate the report
Generate the PDF
report.
Build any type of chart, following the documentation below:
Last updated