The layout management allows the synchronizing of several charts. This is very useful if you want to display multiple charts in your application.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/16a210dc-445e-41d5-8c77-dbc91f394806/Untitled.png

This is an explanation page on the layout concepts, if you want a full tutorial on how to synchronize charts look at Synchronize charts display.

External layout

Depending on your platform choice, the layout of your application (the "external" layout) must be done using your own framework:

Defining the synchronization rules

You can define some rules for synchronizing the different charts in your application considering the constraints created by your layout.

The first thing to do is to instantiate a SizeManager, this manager stores layout constraints and triggers size synchronization when needed.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f52fda90-14f3-4f04-835f-1e1b661afaff/Untitled.png

Then you can add as many SizeSynchronizer as needed to bind your charts' sizes horizontally or vertically.

In this page example, you just need a VerticalSynchronizer to handle all your 3 charts:

//run highlight-only
val sizeManager = sizeManager()
val verticalSychronizer = sizeManager.vSynchro()

verticalSychronizer.addAllCharts(chart1, chart2, chart3)

Now, the constraints of each chart are applied to every other chart and the charts are perfectly synchronized:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/16a210dc-445e-41d5-8c77-dbc91f394806/Untitled.png