Skip to main content

lockChartUpdates

Type​

property

Summary​

Block the update of the chart when changing its properties.

Syntax​

set the lockChartUpdates of widget to {true | false}
get the lockChartUpdates of widget

Description​

Use the lockChartUpdates property to prevent the chart from updating.

When changing one or more properties you may need that the changes are not immediately reflected in the graph. Then by setting lockChartUpdates to false, it will force an update with the current values of the properties.

Examples​

on mouseUp
put "{ 'labels': [ 'Tokyo', 'Mumbai', 'Mexico City', 'Shanghai', 'Sao Paulo', 'New York', 'Karachi', 'Buenos Aires', 'Delhi', 'Moscow' ], 'datasets': [ { 'label': 'Series 1', 'data': [500, 50, 2424, 14040, 14141, 4111, 4544, 47, 5555, 6811], 'fill': true, 'borderColor': '#2196f3', 'backgroundColor': '#2196f3', 'borderWidth': 1 }, { 'label': 'Series 2', 'data': [1288, 88942, 44545, 7588, 99, 242, 1417, 5504, 75, 457], 'fill': true, 'borderColor': '#4CAF50', 'backgroundColor': '#4CAF50', 'borderWidth': 1 } ] }" into tJSON
replace "'" with quote in tJSON
set the lockChartUpdates of widget "Chart View" to true
set the chartJSONData of widget "Chart View" to tJSON
set the lockChartUpdates of widget "Chart View" to false
end mouseUp

Compatibility and Support​

OS

mac

windows

linux

ios

android

web