Recline.js's internals can be partitioned into three areas: models, back ends, and views. Model components -- Datasets, Records, and Fields -- impose structure on data;, a Dataset is a container that holds Record objects. In turn, Record objects hold Field objects, which represent the constituent data. A Field possesses a label, format specification, a flag to indicate whether the Field is calculated, and data type. Recline.js defines 13 data types, ranging from simple (string, integer, float) to complex (geo_point and geoson). A Field can also hold a collection or even an arbitrarily complex JSON object.
Recline.js's Backend object furnishes the connection between a Dataset object and a data source. Put simply, you use a Backend object to "fill" a Dataset with records. Currently, Recline.js comes with eight back ends, including CSV files, ElasticSearch, CouchDB, Google Doc spreadsheets, and others. Recline.js even has a "memory" back end, which allows you to push data into Recline.js directly (hard-coded into your application).
Of course, Recline.js wouldn't be a data visualization library if it couldn't visualize data -- and that's where its Views come in. Recline.js supports two sorts of views: Dataset and Widget. I use the word "support" because Recline.js doesn't provide View objects so much as it integrates with view objects from other frameworks. In fact, the documentation notes that "Recline.js views are instances of Backbone views."
As its name implies, a Dataset view displays a Dataset object. For example, a Grid view is really a table view displaying rows with column headings. Examples of Dataset views on the Recline.js website show bar charts, line charts, timelines, and even geo-data displayed on maps.
Having trouble installing and setting up Win10? You aren’t alone. Here are many of the most common...
It's all about knowing how to build an open source community -- plus experience running applications in...
Win7 Update scans got you fuming? Here’s how to make the most of Microsoft’s 'magic' speed-up patch
The proliferation of insecure devices in every facet of our lives will have consequences far beyond the...
While earning ability shouldn't be the motivation for learning a new language, it can help in making...
Our coding crystal ball clues you into the twists and turns your programming career may take in the...
Microsoft Teams Services adds GitHub integration and easier pull requests