2.1.35 • Published 1 month ago

@plotdb/chart v2.1.35

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month 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 month ago

2.1.34

9 months ago

2.1.32

10 months ago

2.1.33

9 months ago

2.1.31

1 year ago

2.1.18

1 year ago

2.1.19

1 year ago

2.1.27

1 year ago

2.1.28

1 year ago

2.1.25

1 year ago

2.1.26

1 year ago

2.1.23

1 year ago

2.1.24

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

2.1.29

1 year ago

2.1.30

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.12

1 year ago

2.1.13

1 year ago

2.1.10

1 year ago

2.1.11

1 year ago

2.1.9

1 year ago

2.1.4

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.8

1 year ago

2.1.7

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

2.0.0

2 years ago

1.0.3

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago