npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

insightjs

v1.4.0

Published

InsightJS is a data aggregation and vizualization library for quickly analyzing datasets in Javascript.

Downloads

175

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)

  • Library changes:

    • Added grouping to Simple Chart builders
    • Added parameter to insight.Legend constructor to allow a chosen series to be omitted from the legend
    • Added Series title truncation in insight.Legend
  • Issues fixed:

    • Fixed bug where Legend is cut off if a series title is too long

Version 1.3.0 (18-Nov-2014)

  • Library changes:
    • Charts can now be styled using CSS
    • Added Simple Chart builders that produce charts with default configurations

Version 1.2.1 (04-Nov-2014)

  • Library changes:
    • Improved documentation for working with groupings.
    • Updated Grouping calculations to improve consistency
      • Grouping.count() stores total count in value.propertyName.totalCount rather than value.propertyName.Total
      • Grouping.mean() stores mean in value.propertyName.mean rather than value.propertyName.Average
      • Grouping.sum() stores sum in value.propertyName.sum rather than value.propertyName.Sum
    • Removed insight.Chart.title
    • Added insight.Series.title
    • Updated library to work with crossfilter to 1.3.11
    • Added utility, insight.conversion, for converting arff data to json data

Issues fixed:

  • insight.DataSet.group function ignored any filter already applied on the DataSet.

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