Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Context

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.

...

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

Paste code macro
languagegroovy
titleNull values
def chartDefinition = [
    chart: [
        type: 'column'
    ],
    ...
    series: [
        [
            name : 'Series 1',
            data: [null, null, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, null]
        ],
        ...
    ]
]
api.buildFlexChart(chartDefinition)

...