...
A typical FlexChart that would fail due to nulls looks like this:
paste-code-macro | ||||
---|---|---|---|---|
| ||||
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) |
And this is the result after applying the workaround:
paste-code-macro | |
---|---|
groovy | |
title | Workaround | def chartDefinition = [
chart: [
type: 'column'
],
...
series: [
[
name : 'Series 1',
data: [ [], [], 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, []]
],
...
]
]
api.buildFlexChart(chartDefinition)
|