ni-webcharts

10.0.2 • Public • Published

Webcharts Build Status Coverage Status

Webcharts

Web components for plotting engineering and scientific data with a focus on performance.

Usage example:

Import ni-webcharts

npm install --save ni-webcharts

Add a graph to a webpage:

<html>
<head>
    <link rel="stylesheet" href="node_modules/ni-webcharts/styles/webchartsLight.css" />
    <!-- include all script files listed in https://github.com/ni-kismet/webcharts/blob/master/exampleScripts.json -->
</head>

<body>
    <ni-cartesian-graph value="[[0, 10, 200, 3, 40, 500, 6, 70, 800], [1, 2, 3, 4, 5]]">
      <ni-cartesian-axis show label="Time" show-label axis-position="bottom"></ni-cartesian-axis>
      <ni-cartesian-axis show label="Amplitude" show-label axis-position="left"></ni-cartesian-axis>
      <ni-cartesian-plot show label="Plot 1">
        <ni-cartesian-plot-renderer line-width="1"></ni-cartesian-plot-renderer>
      </ni-cartesian-plot>
      <ni-cartesian-plot show label="Plot 2">
        <ni-cartesian-plot-renderer line-width="1"></ni-cartesian-plot-renderer>
      </ni-cartesian-plot>
    </ni-cartesian-graph>
</body>
</html>

Webcharts main elements

ni-cartesian-graph is the element that allows you to shows graphs. Add one to a html page and it will be shown as a graph, rendering the data you pass to it in the value attribute. See the Graph Data types formats section for information on the data types supported. The graph is rendered according to the options passed in a series of webcharts components nested inside the main element.

ni-chart is the element that allows you to show charts. The difference from a graph is that the chart has an internal buffer of historical values, called a HistoryBuffer.

ni-intensity-graph is the element that allows you to show intensity graphs. An intensity graphs shows values arranged in 2d data structure as an image with the values represented according to a specified color gradient.

Webcharts nested elements

ni-cartesian-axis is an element that adds a cartesian axis to one of the main elements.

ni-cartesian-plot is an element that adds a plot description to one of the main elements.

ni-cartesian-plot-renderer adds a plot renderer to a plot, specifying the way the data is rendered - line color, line width, bars, points, fill and many other options.

ni-color-scale adds a color scale to an intensity chart

Documentation

Read the API Documentation.

The documentation for the webcharts is written in markdown and is stored inline in the source code. The tool that extracts the documentation from the source files and updates the documents in the docs folder is invoked by typing:

npm run docs

Read Supported datatypes and decimations for current status.

Version and Deployment

  • This package is versioned according to semantic versioning.
  • The version must be bumped using the npm version command (https://docs.npmjs.com/cli/version). This increments the version in package.json, creates a tag with the same version name, and commit both to the local repository.
  • Push the commit and tag using git push --follow-tags. With a passing CI this will automatically trigger a deployment to NPM.

Changelog

Read the Changelog.

WebGL

In order to use WebGL for drawing, the gl argument must be set to true in the address bar of any page:

http://localhost/performance/scatter_graph.html?gl=true

This drawing is still experimental and is working for points only.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.0.218latest

Version History

VersionDownloads (Last 7 Days)Published
10.0.218
10.0.10
10.0.00
9.11.20
9.11.10
9.11.00
9.10.40
9.10.33
9.10.20
9.10.10
9.10.00
9.9.110
9.9.100
9.9.90
9.9.80
9.9.70
9.9.50
9.9.30
9.9.20
9.9.13
9.9.00
9.8.00
9.7.13
9.7.04
9.6.20
9.6.10
9.6.01
9.5.00
9.4.00
9.3.50
9.3.40
9.3.30
9.3.23
9.3.10
9.3.00
9.2.10
9.2.00
9.1.00
9.0.00
8.1.00
8.0.21
8.0.10
8.0.00
7.4.00
7.3.10
7.3.00
7.1.4-hotfix.40
7.2.10
7.1.4-hotfix.30
7.1.4-hotfix.20
7.2.00
6.0.3-hotfix.03
7.1.4-hotfix.10
7.1.4-hotfix.00
7.1.40
7.1.30
7.1.20
7.1.11
7.1.00
7.0.61
7.0.50
7.0.40
7.0.30
7.0.21
7.0.11
6.0.61
6.0.50
6.0.40
6.0.30
6.0.20
5.4.6-hotfix.00
6.0.10
6.0.00
5.4.60
4.9.0-hotfix.40
5.4.50
4.9.0-hotfix.30
5.4.31
5.4.20
5.4.13
5.4.00
5.3.30
5.3.20
5.3.10
5.3.00
4.9.0-hotfix.20
5.2.00
5.1.20
5.1.10
5.1.00
5.0.00
4.10.010
4.9.0-hotfix.10
4.9.0-hotfix.00
4.9.00
4.8.00
4.7.31
4.7.21
4.7.09
4.6.20
4.6.11
4.6.00
4.5.00
4.4.11
4.4.00
4.3.10
4.3.00
4.2.10
4.2.00
4.1.10
3.0.4-hotfix.20
4.1.00
3.0.4-hotfix.10
4.0.00
3.0.40
3.0.30
3.0.20
3.0.10
3.0.00
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
1.5.30
1.5.20
1.5.10
1.5.00
1.4.30
1.4.20
1.4.10
1.4.00
1.3.10
1.3.00
1.2.100
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.30
1.1.20
1.1.10
1.1.00
1.0.20
1.0.10
1.0.00
1.0.0-20
1.0.0-10
1.0.0-01
0.8.90
0.8.80
0.8.71
0.8.61
0.8.50
0.8.40
0.8.30
0.8.20
0.8.10
0.8.00
0.7.111
0.7.100
0.7.90
0.7.81
0.7.70
0.7.60
0.7.50
0.7.40
0.7.31
0.7.20
0.7.10
0.7.00
0.6.00
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.130
0.4.120
0.4.110
0.4.100
0.4.90
0.4.80
0.4.70
0.4.60
0.4.50
0.4.40
0.4.30
0.4.20
0.4.10
0.4.00
0.3.30
0.3.20
0.3.10
0.3.00
0.2.10
0.2.00
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.120
0.0.111
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50

Package Sidebar

Install

npm i ni-webcharts

Weekly Downloads

78

Version

10.0.2

License

https://www.ni.com/legal/license/

Unpacked Size

1.53 MB

Total Files

45

Last publish

Collaborators

  • cristi.ingineru
  • ralucaportase
  • ni-webapps-ops
  • ocraciun
  • virgilchindris