Charts in Application SDK
Rework pending, no delivery date. The Front App SDK (ReactJS) and the Front API SDK (NodeJS) are both being replaced. This page documents the current release, remains accurate, and is maintained until the replacement ships. Code written against it keeps working.
Charts in the context of the ForePaaS SDK gather the main aspects of rendering data in an application context:
- Observe: update when variables changes, in ForePaaS it is called dynamic parameter.
- Request: building a request and getting results.
- Render: render those results.
Observe
The chart may be linked to dynamic-parameters.
In the example below, the chart will be updated in case of a different date range selected in a datepicker or a different city in a selectbox.
The not-nullable-dynamic-parameter indicates that it must specify a value for this parameter to render.
The dynamic-parameters list the id of previously created dynamic-parameter
There are no other settings to be done. This chart will observe all changes done in dynamic parameters and will automatically make new requests and render as needed.
Request
The request uses the same format as the Analytics Manager.
Render
Here, parameters of interest are component and options.
component: the Charts module will look for a registered component, in this case echarts, and will pass over all informations needed to render itself. You can also create your own Custom Chart Component.options: additionnal parameters, specific to each component, that are passed to this component to customize behaviour and rendering.

