There are some cases where you would like to send additional information attached to either the chart or the datasets. If that's the case, Chartisan provides a field called
extra that allows attaching any information available to the front-end. By default, this has a null value. Nevertheless, you should always send key-value pairs on a JSON object. The values should be simple strings that can be further decoded on the front-end.
You can use the data on the extra field in the hooks of your chart. You can check out the hooks page to know more.
You can append the extra fields to the HTTP response when building the chart. Chartisan provides two methods to do such. In order to add extra information to the chart itself, you can use the
extra method. If the extra information is from a specific dataset, you can use the
advanced dataset method to do such.
This will simply append the extra fields to the HTTP response as shown in the above example HTTP response.