juttle / juttle-viz

Juttle Visualization Library
Apache License 2.0
11 stars 4 forks source link

Barchart is empty when one of the values is 0 #54

Closed philrz closed 8 years ago

philrz commented 8 years ago

I attempt to generate a barchart with juttle-engine:

emit -points [
    { "city": "sf", "value": 1},
    { "city": "ny", "value": 0},
    { "city": "dc", "value": 2}
]
| view barchart -o {
    categoryField: 'city',
    valueField: 'value'
}

This generates an empty chart. The "0" value seems to be the root cause, as if I change that to a non-zero value, now all my bars are intact.