Tagged with custom_javascript - Visokio Forums http://forums.visokio.com/discussions/tagged/custom_javascript/feed.rss Mon, 30 Oct 17 15:03:48 -0400 Tagged with custom_javascript - Visokio Forums en-CA Scripting: DataManager Custom Script block http://forums.visokio.com/discussion/2716/scripting-datamanager-custom-script-block Tue, 16 Sep 2014 12:30:39 -0400 acohen 2716@/discussions
For an input array, I would like to loop through one of the fields and do a calculation but I am falling over at the first hurdle.

How do I reference a field and record number of an input array for instance? Or return a full field from the input array? So I would try something like Input1[Baseball players] for example and hope to preview just that one field.

Apologies, I am a real novice when it comes to JavaScripting.

Thanks]]>
Content View: Creating a custom view using a JS library http://forums.visokio.com/discussion/2679/content-view-creating-a-custom-view-using-a-js-library Mon, 11 Aug 2014 08:58:55 -0400 steve 2679@/discussions
Try online
Download IOK

We use the example from http://www.datatables.net/examples/data_sources/js_array.html and use server-side JS preprocessing to inject dynamic data into the data array declarations in the client-side JS. Open in Omniscope Desktop and edit the Content View source to see how this works.]]>
Scripting: Incorporating Google Charts Gallery? http://forums.visokio.com/discussion/2522/scripting-incorporating-google-charts-gallerys Thu, 17 Apr 2014 06:12:26 -0400 daniel 2522@/discussions https://developers.google.com/chart/interactive/docs/gallery

Would it be possible to get these graphs into Omniscope's Content view? I'm mainly interested in the Timeline and the Candlestick charts which Omniscope views do not currently provide.

I've been able to get the code examples to work but I don't know how to write the JavaScript to actually get the graphs to use the data within Omniscope files.


Clarification:

The code example here has a section which define var data and the array of data, how do I write it so that var data becomes a reference to columns of data in the Omniscope file?

var data = google.visualization.arrayToDataTable([
['Mon', 20, 28, 38, 45],
['Tue', 31, 38, 55, 66],
['Wed', 50, 55, 77, 80],
['Thu', 77, 77, 66, 50],
['Fri', 68, 66, 22, 15]
// Treat first row as data as well.
], true);

https://developers.google.com/chart/interactive/docs/gallery]]>
Scripting: Examples from D3.js Gallery? http://forums.visokio.com/discussion/2528/scripting-examples-from-d3.js-gallerys Wed, 23 Apr 2014 09:13:31 -0400 daniel 2528@/discussions
https://github.com/mbostock/d3/wiki/Gallery]]>