@hpcc-js/dgrid
TypeScript icon, indicating that this package has built-in type declarations

2.32.17 • Public • Published

@hpcc-js/dgrid

This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including quick start, demos and tutorials, please visit the main page on GitHub: hpcc-systems/Visualization.

Details

The dgrid package contains the following visualizations:

Note for Rollup.js users

dgrid is dependent on dgrid-shim which requires some special configuration when bundling with Rollup.js - please see dgrid-shim for more information.

<script type="module"> // Note: dgrid does not support "import" - this will fail import { Table } from "@hpcc-js/dgrid";
    new Table()
        .target("target")
        .columns(["Mother", "Father", { label: "Children", columns: ["Name", "sex", "age"] }, { label: "Pets", columns: ["Name", "type"] }])
        .data([
            ["<b>Jane</b>", "John", [["Mary", "f", 4], ["Bob", "m", 6], ["Tim", "m", 1]], [["Spot", "dog"], ["Smelly", "cat"], ["Goldie", "Fish"], ["Hammy", "Hamster"]]],
            ["Penelope", "Alex", [["Bill", "m", 1]], []],
            ["Jill", "Marcus", [], [["Flappy", "parrot"], ["Stinky", "cat"], ["Rolf", "dog"]]],
            ["Susan", "Robert", [["Jack", "m", 4], ["Alice", "f", 6]], []]
        ])
        .render()
        ;
  </script>

Readme

Keywords

none

Package Sidebar

Install

npm i @hpcc-js/dgrid

Weekly Downloads

1,302

Version

2.32.17

License

Apache-2.0

Unpacked Size

8.23 MB

Total Files

43

Last publish

Collaborators

  • hpcc-js