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

@grapecity/gcdataviewer

v1.2.0

Published

GrapeCity Documents Data Viewer

Downloads

20

Readme

GrapeCity Documents Data Viewer

A full-featured JavaScript Data viewer that comes with GrapeCity Documents for Excel.

GrapeCity Documents Data Viewer (GcDocs Data Viewer, GcDataViewer) is a fast, modern JavaScript-based data viewer that runs in all major browsers. It can load and preview any data-related document such as Excel, CSV, SSJSON, etc.

The viewer can be used as a cross-platform solution to view data documents on Windows, MAC, Linux, iOS, and Android devices. GcDataViewer is included in GrapeCity Documents for Excel (GcExcel) - a feature-rich cross-platform SpreadSheet API library for .NET Core and Java.

GcDataViewer provides a rich client side JavaScript object model, see https://www.grapecity.com/documents-api-dataviewer/api for the client API documentation.

Product highlights:

  • Works in all modern browsers, including Edge, Chrome, FireFox, Opera, Safari
  • Works with frameworks such as React, Preact, Angular
  • Allows opening data files from local disks
  • Supports data document formats including XLSX, SSJSON, CSV
  • ...and more.

See it in action

  • Go to GrapeCity Documents Data Viewer demos to explore the various features of GcDataViewer. The demo site allows you to modify the demo code and immediately see the effect of your changes.

Latest changes

[1.2.0] - 07/28/2023

Added

  • Support keyboard shortcuts.(DOCXLS-6805)
  • Load SpreadJS .sjs files.(DOCXLS-8005)
  • Support numerical count aggregation in status bar.(DOCXLS-8258)

[1.1.0] - 04/28/2023

Added

  • UI improvements.(DOCXLS-7022)
  • Load data files stored on the web/from URL.(DOCXLS-7131)
  • Customize the toolbar to remove or reorder buttons.(DOCXLS-7132)
  • Support 'Show/Hide Notes' button in toolbar.(DOCXLS-7133)
  • Support sorting of values.(DOCXLS-7145)
  • Support filtering of values.(DOCXLS-7146)
  • Support charts/pictures/shapes/slicers/SpreadJS barcodes.(DOCXLS-7147)
  • Support interaction with tables.(DOCXLS-7149)
  • Support Pro license.(DOCXLS-7266)

See CHANGELOG.​md for release notes.

Installation

To install the latest release version:

npm install @grapecity/gcdataviewer

To install from the zip archive:

Go to https://www.grapecity.com/documents-api-dataviewer and follow the directions on that page to get the GcDataViewer package, your 30-day evaluation, and deployment license key. The license key will allow you to develop and deploy your application to a test server. Unzip the viewer distribution files (list below) to an appropriate location accessible from the web page where the viewer will live.

Viewer zip includes the following files:

  • README.​md (this file)
  • gcdataviewer.js
  • package.json
  • index.html (sample page)
  • index.d.ts (typeScript declaration file)
  • CHANGELOG.​md
  • Theme files:
    • themes/dark.css
    • themes/dark-yellow.css
    • themes/gc-blue.css
    • themes/light.css
    • themes/light-blue.css
    • themes/viewer.css
  • docs/index.html(api doc)

Documentation

Online documentation is available here.

Licensing

GrapeCity Documents Data Viewer is a commercially licensed product. Please visit this page for details.

Getting more help

GrapeCity Documents Data Viewer is distributed as part of GrapeCity Documents for Excel. You can ask any questions about the viewer, or report bugs using the Documents for Excel public forum or Documents for Excel Java public forum.

More details on using the viewer

Adding the viewer to an HTML page:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <!-- Limit content scaling to ensure that the viewer zooms correctly on mobile devices: -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="theme-color" content="#000000" />
    <title>GrapeCity Documents Data Viewer</title>
    <script type="text/javascript" src="gcdataviewer.js"></script>
    <script>
        function loadDataViewer(selector) {
            var viewer = new GcDataViewer(selector);
        }
    </script>
    <style>
        #root { height:100%}
    </style>
  </head>
  <body onload="loadDataViewer('#root')">
    <div id="root"></div>
  </body>
</html>

How to license the viewer:

Set the GcDataViewer Deployment key to the GcDataViewer.LicenseKey property before you create and initialize GcDataViewer. This must precede the code that references the js files.

  // Add your license
  GcDataViewer.LicenseKey = 'xxx';
  // Add your code
  const viewer = new GcDataViewer("#viewer1");

Using the viewer in frameworks such as React, Preact, Angular etc.

Add a reference to the viewer script.

<body>
  <script type="text/javascript" src="gcdataviewer.js"></script>
  ...

Add the placeholder to your App template, e.g.:

<section id="dataviewer"></section>

Render the viewer:

let viewer = new GcDataViewer('section#dataviewer');

The End.