I have here only DP4 to test.
Don't you have to use com.livecode.widget.chart as widgetkind?
With
create widget "myChart" as "com.livecode.widget.chart"
set the width of last widget to 250
set the height of last widget to 250
i was able to create a chart.
Regards,
Matthias
> Am 04.08.2022
Using LC 10 dp2, I am trying to script the creation of a chart widget.
My command “create widget myName as chart in group myMain” creates only a small
gray box.
The LC command “New Widget/Chart” creates a line chart, ready to be modified.
What is the LC command doing that I am not?
Or: h