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

modern-chart-view

v0.0.2

Published

modern chart view app

Downloads

12

Readme

modern-chart-view

modern-chart is a versatile charting library designed to provide users with the flexibility to generate charts using either ECharts or Taucharts, based on their preferences and requirements. With modern-chart, users have the freedom to choose between these two powerful charting libraries, each offering unique features and capabilities, to create visualizations that best suit their needs.

Key Features:

  • Choice of Charting Libraries: modern-chart-view allows users to select between ECharts and Taucharts for generating charts, offering a wide range of chart types and customization options.

  • Seamless Integration: The library seamlessly integrates with both ECharts and Taucharts, providing a unified interface for chart creation and data visualization.

  • Interactive Data Visualization: modern-chart-view empowers users to create interactive and dynamic charts, enabling data exploration and analysis with ease.

  • Option to select from pre-existing Queries and their data

Documentation

Just import the QueryEditorResultTabs component and pass the columns and rows data to get started

<QueryEditorResultTabs columns={columns} rows={rows}>

| Parameter | Type | Description | | :-------- | :----------- | :--------------------------------- | | columns | IColumnObj | Required. Query result columns | | rows | IRow | Required. Query result rows |

Interfaces

Columns prop is an array of Objects based on IColumnObj interface -

Column Object:

{
  datatype: string;
  name: string;
  max?: number;
  maxLineLength?: number;
  maxValueLength?: number;
  min?: number;
  [key: string]: any; //can accept any key of type string and value any in the column object
}

Rows prop is an array of array of values based on the IRow interface -

Array<any>[];

Echarts - (features)

  • Option to choose and generate charts of the form Line, Bar and Horizontal Bar.

  • Option to choose and set the color of line (Line chart) and bar (bar chart).

  • Option to opt in for smoothing of line in Line chart.

Tau Charts - (features)

  • Option to choose and generate charts of the form Line, Bar and Horizontal Bar.

  • Option to opt in for smoothing of line in Line chart.

Installation

npm install modern-chart-view

There could be a possiblity that you need to declare the module in a .d.ts file

For that create a declaration.d.ts file in the root of your project and add the following line -

declare module 'modern-chart-view';