chartJSONOptions

Typeproperty
Dictionarywidget.chart
LibraryChart
Syntax
set the chartJSONOptions of widget to <JSON string options>
get the chartJSONOptions of widget
Associationscom.livecode.widget.chart
Summary

Gets or sets options for displaying the chart in JSON format

OSmac, windows, linux, ios, android, web
Example
on mouseUp
      local tJSONOptions

      put "{'options':{'scales':{'y':{'beginAtZero':true}}}}" into tJSONOptions
      replace "'" with quote in tJSONOptions
      set the chartJSONOptions of widget "Chart View" to tJSONOptions
end  mouseUp
on mouseUp
  local tJSONOptions
  put true into tJSONOptions["options"]["scales"]["y"]["beginAtZero"]
  put ArrayToJSON(tJSONOptions) into tJSONOptions
  set the chartJSONOptions of widget "Chart View" to tJSONOptions
end  mouseUp
Description

This property exposes the entire javascript object chart.options to LCS, allowing experienced chartjs users to create advanced charts by setting this property to (JSON format).

Warning: Several properties will be affected by setting this property directly.