Dear community,
trying to display a graph, I tried to use ChartMaker unfortunately without success.
Following the instructions I always get error messages simular to:
Blockquote RuntimeError. Irritants: (The operation DrawPieChart cannot accept the arguments: , ["Headline"], [["string", "number"]], [["Activity", "Time"]], [["No 1", "No 2", "No 3"]], [[7, 5, 10]], [false] Bad arguments to DrawPieChart)
If you need more information, please do not hezitate asking me.
Thanks
Hello Steve,
that's correct. I am using an iOS device and did not know, that extensions do not work there. Many thanks for this information.
Do you have an idea, how to create easy diagrams, like a line-diagram.
Marcus
Hello Nyctophilia_FMA,
I think, Steve found the point, why it does not work. Just for information I will upload the aargument. They should (hopefully) be correct.
Marcus
You are right. After changing to "WebViewer1" I got the following error message:
Blockquote invoke: unable to invoke method DrawPieChart in object of type boolean. Irritants: () Note: You will not see another error reported for 5 seconds.
Many thanks to you, Nyctophilia_FMA, for your example. I have tested canvas and can now successfully draw diagrams.
I have just one question let: if I draw a driagram when clicking on a button, the expected line will be shown, see figure 1. But, if I want to show the diagram when opening the new screen (when screen_xy initialize) the line will not be displayed, see figure 2. Why is the line not shown when changing to the screen?
Figure 1: Drawing a disgram when clicking on a button
With the two buttons, I switch to other screens. That works well, the two first blocks in fugure 2 are no problem.
But, If I change to screen 2 (i.e. from screen 1), the line from the function "DrawLine" will not be shown.
There might be an order of operations issue where the screen hasn't fully drawn yet when Initialize is called, so your DrawLine operation ends up being a no-op. I'd be interested in seeing if you had a clock that you enabled and then drew the line in the timer event whether it would have the same issue.
Hello ewpatton,
it seems, that you are right: during the initialisation phase I have started a timer and after one second the line will be drawn correctly. Therfore, the attached program works as expected.
Is this a general problem and do I have to take this generally into account when programming?