16
Views
3
Comments
charts version 1 error "unexpected identifier 'width'"
Question

The outsytems chars - stacked column chart is returning the error 'unexpected identifier 'width'", due to failed parsing of the highcharts json, but in the highcharts website it works.

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi Hugo,

Could you please share the JSON you're using? 

2025-11-19 06-14-01
Miguel Verdasca
Champion

Ola Hugo,

This usually happens because OutSystems Charts (v1) does not support the full Highcharts JSON syntax, even if it works on the Highcharts website.

The unexpected identifier 'width' error typically comes from properties or structures that the OutSystems JSON parser does not expect (for example, width defined at an unsupported level, inside series or plotOptions).

Try removing or relocating the width property and stick to the options explicitly supported by OutSystems Charts. In many cases, chart sizing should be handled via the widget/container (CSS) instead of the Highcharts JSON.

If needed, validate the JSON against the OutSystems Charts documentation rather than the Highcharts playground, as they are not fully equivalent.

Best, Miguel

2025-09-25 14-38-22
Lokesh Kumar Yadav

This happens because OutSystems Charts expect a restricted Highcharts JSON schema, and properties like width are not supported in that context even though they work on the Highcharts website.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.