Giter VIP home page Giter VIP logo

insight's Introduction

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.2.0 (07-Oct-2014)

  • Library changes:

    • Added Chart.titlePadding, to configure the distance between the chart title and plot area.
    • Added Axis.tickWidth and Axis.tickColor to configure the appearance of axis tick marks. Defaults are taken from the Theme.axisStyle.tickLineColor and Theme.axis.tickLineWidth respectively.
    • Added BarSeries as a common base class between RowSeries and ColumnSeries. BarSeries should not be initialized directly, but contains methods used in both RowSeries and ColumnSeries.
    • Added manual axis domains. Use Axis.axisRange(min, max) to set the axis range to a custom range.
    • Renaming
      • insight.Axis.axisLabelColor => insight.Axis.axisTitleColor
      • insight.Axis.axisLabelFont => insight.Axis.axisTitleFont
      • insight.Axis.label => insight.Axis.title
      • insight.Theme.axisStyle.showGridlines => insight.Theme.axisStyle.shouldShowGridlines
      • insight.Theme.axisStyle.axisLabelFont => insight.Theme.axisStyle.axisTitleFont
      • insight.Theme.axisStyle.axisLabelColor => insight.Theme.axisStyle.axisTitleColor
      • insight.Theme.seriesStyle.showPoints => insight.Theme.seriesStyle.shouldShowPoints
      • insight.Formatters => insight.formatters.
      • insight.Scales.Linear => insight.scales.linear
      • insight.Scales.Ordinal => insight.scales.ordinal
      • insight.Scales.Time => insight.scales.time
      • insight.Constants => insight.constants
      • insight.Utils => insight.utils
      • insight.correlation.fromDataSet => insight.correlation.fromDataProvider
  • Issues fixed:

    • Date axis tick labels were jumping on interactive charts
    • Charts were not able to be drawn with no data

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!

<link rel="stylesheet" href="insight.min.css">

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.7/crossfilter.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/insightjs/1.2.0/insight.min.js"></script>
d3.json('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

insight's People

Contributors

matthewdunsdon avatar nicostavrakakis avatar peterdavehello avatar seanworkcode avatar stavrakakis avatar tpkelly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.