width
and height
properties define the width and height of your visualization area, in pixels:tweets_nov_feb
data table. The coordinates are labeled x
and y
for Field Reference in the marks
property, which references the data using the tweets
name.marks
property specifies the graphical attributes of how each data item is rendered:tweets
data table is rendered as a point. The points
marks type includes position, fill color, and size attributes. The marks property specifies how to visually encode points according to these attributes. Points in this example are three pixels in diameter and colored blue.scales
specification maps marks
to the visualization area.x
and y
scales specify a linear
mapping of the continuous, quantitative input domain to a continuous output range. In this example, input data values are transformed to predefined width
and height
range
values.renderVega()
API to communicate with the backend. The connector is layered on Apache Thrift for cross-language client communication with the server.browser-connector.js
located at https://github.com/omnisci/mapd-connector/tree/master/dist to include the MapD connector and Thrift interface APIs.MapdCon()
connector and set the server name, protocol information, and your authentication credentials, as described in the MapD Connector API:dbName
host
password
port
protocol
http
, https
user
(error, success)
signature as the parameter.connect()
function generates client and session IDs for this connection instance, which are unique for each instance and are used in subsequent API calls for the session.renderVega()
function.widgetid
options
compressionLevel
:PNG compression level. 1
(low, fast) to 10
(high, slow). Default = 3
callback
(error, success)
signature.results.image
, which you can display in the browser window using a data URI.