How to Set Data with Null Values in FlexCharts?


We use a library named Wicked Charts for server side validation of the chart. Unfortunately this library doesn't support null values, even though they are valid for Highcharts.


Replacing the null values by empty maps ("[ ]" in Groovy) will pass the validation successfully, and the final Highchart will look as if nulls had been provided.

A typical FlexChart that would fail due to nulls looks like this:

And this is the result after applying the workaround: