0.0.3 • Published 2 years ago

cellerenderers v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

A collection of cellrenderers for Aggrid

#How to install:

npm install cellrenderers

Cellrenderers

1. Waterfall - A cellrenderer that displays a waterfall chart:

This will show one value column of the grid as waterfall chart

Usage:

  1. In your gridOptions file add the following:
import { WaterfallCellRenderer } from "cellrenderers";
import { setupRenderers } from "cellerenderers/shortcuts";
const gridOptions = {
  context: {},
  onGridReady: function (params) {
    setupRenderers(gridOptions, params);
  },
};
  1. Now update your columnDefs to use the WaterfallCellRenderer:
const columnDefs = [
  { field: "make", rowGroup: true },
  { field: "model" },
  {
    field: "price",
    cellRenderer: WaterfallCellRenderer,
    aggFunc: "sum",
    width: "200px",
  },
];
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago