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

zeppelin-aggrid

v0.2.3

Published

Data visualization with Ag-Grid for Apache Zeppelin

Downloads

13

Readme

zeppelin-aggrid

Data visualization for Apache Zeppelin using ag-Grid (rich table widget).

How to use

Zeppelin (since 0.8.0 version) got automatically all its Helium plugins published in NPM. So, just enable visualization plugin from the Helium page. You can go there from dropdown menu under your username at the top right corner in Zeppelin.

Licence key

You have to set valid licence key manually by updating the line 81 at ZEPPELIN_HOME/local-repo/vis/node_modules/zeppelin-aggrid/aggrid-transformation.js file in order to enable advanced ag-Grid options like Aggregation and Pivoting.

Please, be aware you may ask ag-Grid for trial licence key which is valid during 3 month.

Loading data

You can load data in any way possible in Zeppelin. Please, look into Zeppelin standard tutorial notebooks for examples.

Settings

You can use usual Zeppelin visualisations Settings panel to update ag-Grid columnDefs in the according UI field. Unlike usual ag-Grid settings the data placed there should be a valid JSON, i.e. strings must be framed with double quotes except of numeric, boolean or null values. Example is shown below.

{"columnDefs": [
    {"field": "gold", "aggFunc": "sum", "enableValue": true, "width": 100},
    {"field": "silver", "aggFunc": "min", "enableValue": true, "width": 100},
    {"field": "bronze", "aggFunc": "max", "enableValue": true, "width": 100},
    {"field": "country", "rowGroup": true, "enableRowGroup": true},
    {"field": "year", "pivot": true, "enablePivot": true},
    {"field": "date"},
    {"field": "sport", "pivot": false, "enablePivot": true} 
]}

Pivoting

Please, read the ag-Grid docs about pivoting for more details and examples, if it is needed.

Some points for setting data pivoting in this plugin can be done by the ag-Grid UI (e.g. Tool Panel), some things not. To allow a column to be used as pivot column via the Tool Panel, set "enablePivot": true on the required columns definitions. Otherwise you won't be able to drag and drop the columns to the pivot drop zone from the Tool Panel.

Enable Pivot mode by switching eponymous checkbox on Tool Panel then.

Be aware that date column in the example above won't be shown, because nor aggregation, nor grouping, nor pivoting is enabled for it.

You can manage table column width by clicking the menu sign, which is appearing at the right of column name on mouse over.

You can choose aggregation function by clicking on field name in Values set on Tool Panel.

Compatibility

Requires Zeppelin 0.7.2+ (but 0.8.0 is better)

Changelog

  • 0.2.3 2018-12-27 Pivot mode disabled by default, that allows plugin to show data as simple table on start; critical error with empty columnDefs was fixed.
  • 0.2.2 licence key definition and setting template moved to aggrid-tranformation.js.

Maintenance

This plugin works fine, but I made it for my work project and I don't plan to support it after year 2018. Please fork the repo and ask me for NPM ownership in case it's insteresting for you.