Forum Replies Created
-
AuthorPosts
-
September 13, 2017 at 3:11 am in reply to: Embedding CODAP components (table or Graph) in webpage #403Bill FinzerKeymaster
OK, so we’re assuming you can create a webpage. Here are the steps:
- Create the CODAP document just how you want it, with everything laid out starting at the top left. Give this document a name and save it.
- In the 3-strips menu choose Share… / Get link to shared view. This will open a dialog box.
- Press the Enable Sharing button. This will bring up a Share dialog box.
- Choose the middle tab Embed.
- Copy the code in the box (the text that starts with “<iframe”).
- Go into your web page editor where you want to embed the CODAP document.
- Paste the code you copied in the desired place.
- Edit the code by inserting “?componentMode=yes” in the place shown here:
src="https://codap.concord.org/app/<strong>?componentMode=yes</strong>#shared=12345">
- Open your web page and figure out what width and height of the rectangle you want and edit those two numbers in the code.
Notice that CODAP’s tool shelf is not showing. That’s because you added the code that turns on “componentMode.”
Be aware that you can at any time go back to your original saved document, make changes, save them, and use Share… / Update shared view so that the next time your web page is viewed, your changes are there.
Hoping this works,
BillAttachments:
Bill FinzerKeymasterGenerally CODAP runs slower on Firefox than on Chrome. But check Firefox to make sure you have the latest version.
The fact that the computed value doesn’t update is a bug, that I don’t think is in our current bug list. Putting it there now!
Thanks, Bill
Bill FinzerKeymasterHi Fi,
I bet the video you watched was this one, which refers to an old version of CODAP. Things have changed.
You can watch a video of the new interface for creating formulas here.
Basically, after creating the attribute, click on its column header to bring up a menu and choose Edit Formula.
Hope this helps,
Bill
August 29, 2017 at 2:47 pm in reply to: Creating a parent-level collection from a data interactive #394Bill FinzerKeymasterHello Anna,
There are at least two things going on here:
- As you correctly suspected, the flag preventDataContextReorg (I’m pretty sure) defaults to true. It defaults to true so that your users won’t reorganize their data and make it impossible for your data interactive (plugin) to add more data. But you can set it to false as shown in the section Example: InteractiveFrameUpdate of the API documentation. It sounds like you tried this with no success, but try again and if still no luck, ask here.
- If you want to be able to add data no matter how users may have reorganized things, use the Items api instead of the Cases api.
Can you share a bit more about your situation and the plugins you are creating?
Bill
August 23, 2017 at 2:40 pm in reply to: Creating a new collection using a variable created with a formula #391Bill FinzerKeymasterHi Anna,
I’m glad you’re having a good experience tidying your data so far.
A cool thing about formulas is that removing the formula (by editing it and deleting its text) does not change the values that have already been computed. So that will “set” the values and you can proceed to drag the attribute to a higher level.
Bill
Bill FinzerKeymasterHello Mitchell,
We don’t have a moving average function. (But I’m adding a feature request for one on your behalf.)
But if I’ve understood correctly, you can compute what you are after as follows.
- Create an attribute named runningSum with the formula prev(runningSum,0)+current
- Create an attribute named runningAvg with the formula runningAvg/caseIndex
Is this is the kind of average you’re looking for? When I tried it, I got a nice graph for three runs. Note that I had to define an attribute named ticks with the formula caseIndex.
Hope this helps,
Bill
Attachments:
Bill FinzerKeymasterHi Kathy,
These are both nice demonstrations of ways to use the Sampler plugin! I couldn’t resist making a distribution of percentage of “Make” for each of the numbers of selection (see enclosed pic).
I found myself wondering what you think about whether HS students’ after a couple of sessions with the sampler would come to understand it well enough to make simulations from scratch?
Bill
Attachments:
Bill FinzerKeymasterHi Heinrich,
Make sure the case table for the data you want to export is showing. Click on it to make it active so that the inspector menu shows. Click on the ruler to bring up the menu as shown in the screenshot and choose Export Case Data. Following through the dialogs will allow you to save the data as ‘csv’ either to Google Drive or to your local computer.
Hope that helps,
Bill
Attachments:
Bill FinzerKeymasterHello Christián,
NetLogo Web now has the ability to add CODAP integration as an extension. To learn about this, take a look at the slide presentation that Kit Martin of the NetLogo group did last February. It’s in this folder.
I hope that has what you need. It’s pretty cool! You don’t have to mess with the html at all.
Bill
Bill FinzerKeymasterHi Gabriella,
I’m deferring your question about log data to Jonathan Sandoe who has recently been working in that area.
Regarding embedding CODAP in another site: Yes, provided you have in mind embedding as an iFrame. There are many examples of this here. If you use the query parameter ?embeddedMode=yes in the url for the iFrame, CODAP will only display the contents of the document.
Hope that helps,
Bill
Bill FinzerKeymasterHi Kathy,
In addition to using the Main Menu/Open command, they can also set up their screen so they can see both the browser and the file itself in their local file system. Then drag the file into CODAP. Voila!
Bill
Bill FinzerKeymasterHi Joachim,
I was able to follow Jonathan’s suggestion using the DropHTMLTable plugin on the CODAP Data Interactives Plugins page (under utilities). I selected the table text in the PDF and pasted it into the plugin. For some reason I wasn’t able to directly drag into CODAP.
I also discovered a free utility called Tabula that appears to address this need, allowing you to extract tables from PDFs and turn them into a csv. I tried it in a simple case and it worked fine. Let us know if you have any luck with it.
Bill
Bill FinzerKeymasterHello Joachim,
One way is to define an attribute that has the formula
correlation(attribute1,attribute2)
as shown in the attached screenshot. Notice that by dragging the new attribute all the way to the left to promote it, you get a single value that is less confusing than if you left it in the “flat” part of the table.
Another way is to make a scatterplot of the two attributes and, with the ruler icon on its inspector, add a least squares regression line. On the line you will see the value of r-squared.
Bill Finzer
Attachments:
Bill FinzerKeymasterHi Asia,
Can you say a bit more about your situation? What are you teaching, and at what level? How do you think CODAP might fit in with your situation?
Bill
Bill FinzerKeymasterRegarding the Normal Distribution Sampler: It isn’t a very sophisticated plugin so you have to bring up the case table by hand; i.e. by clicking on the Tables icon and choosing People/Samples. Did you try that? If you did but still didn’t get anything, can you describe in a bit more detail what occurred?
Thanks!
-
AuthorPosts