2.1.35 • Published 1 year ago

@plotdb/chart v2.1.35

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@plotdb/chart

charting framework. In @plotdb/chart, charts are separated into 3 parts:

  • chart class - define how a chart works, and provide an interface for controlling charts.
  • chart mod - specific chart definition and implementation.
  • chart data - data, config, binding and other metadata.

Chart class provides:

  • chart lifecycle control - initing, resizing, rendering, destroying, etc
  • animation loop control.
  • rendering management for container resizing / visibility changing.
  • utility modules for common charting components.

Chart mod includes:

  • the actual code for chart rendering
  • definition of user configurable options
  • accepted data formats
  • other metadata and dependencies

While not in spec and not necessary, chart mod can be encapsulated in @plotdb/block.

Usage

install via @plotdb/chart:

npm install --save @plotdb/chart

include @plotdb/chart js and css files under dist, mainly index.js and index.css:

<link rel="stylesheet" type="text/css" href="path-to-dist/index.min.css"/>
<script src="path-to-dist/index.min.js"></script>

then, create and initialize a chart object:

c = new chart({ ... })
c.init().then(function() { ... });

For more detail about chart module object, chart object constructor option and api interface, check doc/index.md.

License

MIT

2.1.35

1 year ago

2.1.34

2 years ago

2.1.32

2 years ago

2.1.33

2 years ago

2.1.31

2 years ago

2.1.18

2 years ago

2.1.19

2 years ago

2.1.27

2 years ago

2.1.28

2 years ago

2.1.25

2 years ago

2.1.26

2 years ago

2.1.23

2 years ago

2.1.24

2 years ago

2.1.21

2 years ago

2.1.22

2 years ago

2.1.20

2 years ago

2.1.29

2 years ago

2.1.30

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

3 years ago

2.1.12

3 years ago

2.1.13

3 years ago

2.1.10

3 years ago

2.1.11

3 years ago

2.1.9

3 years ago

2.1.4

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.3

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago