ScottLogic/insight

Name: insight

Owner: Scott Logic Ltd

Description: A Javascript charting library

Created: 2014-05-28 09:22:15.0

Updated: 2017-07-03 12:38:18.0

Pushed: 2015-09-28 10:06:47.0

Homepage: scottlogic.github.io/insight/#/

Size: 45458

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

InsightJS Travis Results

InsightJS is a JavaScript data aggregation and visualization library that allows you to quickly load and find patterns in datasets. Given a data set, InsightJS can group the records across the dimensions of the data to quickly aggregate and provide statistics on the data.

Version 1.4.0 (08-Jan-2015)
Version 1.3.0 (18-Nov-2014)
Version 1.2.1 (04-Nov-2014)

Issues fixed:

Version 1.2.0 (07-Oct-2014)
Getting Started

Using InsightJS requires the following libraries:

InsightJS is also compatible with RequireJS.

Include the required libraries and InsightJS.

Load a dataset and start analyzing and creating charts!

k rel="stylesheet" href="insight.min.css">

ipt type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.7/crossfilter.min.js"></script>
ipt type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
ipt type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/insightjs/1.2.0/insight.min.js"></script>
avascript
son('appstore.json', function(data)

var dataset = new insight.DataSet(data);

var genreGroup = dataset.group('genre', function(d)
{
    return d.primaryGenreName;
});

var chart = new insight.Chart('AppGenres', '#chart')
    .width(400)
    .height(350)
    .title('Genres');

var x = new insight.Axis('Genre', insight.scales.ordinal)
         .tickLabelOrientation('tb');

var y = new insight.Axis('No. Apps', insight.scales.linear);

chart.yAxis(y);
chart.xAxis(x);

var columns = new insight.ColumnSeries('columns', genreGroup , x, y)
                         .valueFunction(function(d){
                                return d.value.Count;
                            });
chart.series([columns]);

chart.draw();

Information
License

InsightJS is licensed under the MIT License


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.