Updated:
-
added command CE_WebGadget_Update()
-
added example CE_WebGadget_ChartJS.pb
CE_WebGadget_Update()
This was the first step to a working
Chart.js example, but it also opened up other possibilities...
Executing the command by itself will refresh the currently loaded webpage.
Executing the command with additional parameters will update the currently loaded webpage.
Code: Select all
*HTML = UTF8(LineChart$)
cewg_data\DataSource = *HTML
cewg_data\DataLength = MemorySize(*HTML)
CE_WebGadget_Update(cewg_data)
Code: Select all
cewg_data\DataSource = ?Marquee_Start
cewg_data\DataLength = ?Marquee_End - ?Marquee_Start
CE_WebGadget_Update(cewg_data)
NOTE: cewg_data\SourceURL cannot be used to update a CE_WebGadget, and should not be modified after CE_WebGadget_Init has been called.
EXCEPTION: Both the original and updated URL start with http:// or https://; see CE_WebGadget_5.pb.
Code: Select all
cewg_data\SourceURL = "https://www.mypurebasicstuff.com"
CE_WebGadget_Update(cewg_data)
CE_WebGadget_ChartJS.pb (
Chart.js)
- animated, resizable, dynamic charts (tooltips, active legend / hide dataset, Randomize data button, etc.)
My first three examples (line, bar, pie) use a different method for randomizing data then the other examples.
This was before I had a working utils.js and understood how to include actions.
NB*: Free executables (x86/x64) can also be downloaded from My PureBasic Stuff; see FREE STUFF.