Add graph in layout

Insert graph in editor

As soon as you have saved your new dataset you can find your graph in the Components list in the context menu. Make sure that you have placed the cursor on the line where you want to insert your graph. Double-click on the graph type (in this example "LineGraph ( Single Search)" and the code will automatically be added to your code editor.

Please note that if you have more graphs of the same type, you can easily tell them apart in the components list based on their name. In the example to the left, the name of the graph is set to "LineGraph" on the dataset record.

Change attributes

Each graph type has a set of preconfigured attributes that defines how the graph should be displayed in the PDF. For each section below that describes the different graph types, you can read more about the default attributes for each graph as well as some useful tips on how to adjust them.

If you want to change, add or remove any attribute you do this directly in the editor. In the <linegraph> element, there are 9 attributes in total in this example. If you want to change the width of your graph for example, simply replace the "400" with the width you want. Do not forget to save your changes when you are done by saving the Layout record.