pdfMachine merge - insert personalised chart into PDF

Note: the liquid "chart" tag only Works in Word document templates.

A chart template can be configured under the profile "charts" tab. Each chart template has an ID, which is refered to by the custom liquid "chart" tag. The chart tag takes 2 parameters, the chart id and an optional collection, which defaults to "_rows" if not given.

e.g. in your Word template document:

                            {% chart 1 %}
                       
or something more complex:
                            {% assign groups = _rows | group_by: "invoice_id"}
                            {% for group of groups}
                               {% chart 1, group %}
                            {% endfor %}