0.0.12 • Published 6 years ago

c3-rect-zoom v0.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Plugin for c3 which allows zooming to rectangular area.

Currently only very simple use case is covered and i haven't tested it with different features (etc. regions).

Demo

Installation

npm install c3-rect-zoom

Or just download dist/c3-rect-zoom.js and add it with script tag.

Also include css file dist/c3-rect-zoom.css somewhere.

Usage

c3-rect-zoom adds (or wraps if needed) oninit and onrendered callback to props you provide to c3.generate.

// Once somewhere in the beginning...
var c3 = require('c3')
require('c3-rect-zoom').patchC3(c3)

// Later when creating a chart
c3.generate({
    data: ...,
    c3RectZoom: {
        enabled: true,
        // ...c3RectZoom.Settings
    }
})

Settings

See interface c3RectZoom.Settings in c3-rect-zoom.d.ts.

License

MIT

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago