Browse Source

Core with corrected scroll

merge-requests/15/merge
Alexander Velikiy 3 years ago
parent
commit
c30bc9fa8b
  1. 4
      dist/index.js
  2. 3
      examples/demo.html
  3. 8
      package-lock.json
  4. 4
      package.json

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

3
examples/demo.html

@ -20,6 +20,9 @@
const panningEnd = (ranges) => { const xRange = ranges[0]; options.axis.x.range = xRange; pod.updateData(undefined, options); } const panningEnd = (ranges) => { const xRange = ranges[0]; options.axis.x.range = xRange; pod.updateData(undefined, options); }
let options = { let options = {
renderLegend: false, usePanning: false, axis: { y: { invert: false, range: [0, 350] }, x: { format: 'time' } }, renderLegend: false, usePanning: false, axis: { y: { invert: false, range: [0, 350] }, x: { format: 'time' } },
zoomEvents: {
scroll: { zoom: { isActive: true, orientation: 'horizontal' } }
},
eventsCallbacks: { zoomIn: zoomIn, zoomOut, panningEnd } eventsCallbacks: { zoomIn: zoomIn, zoomOut, panningEnd }
} }
var pod = new LinePod( var pod = new LinePod(

8
package-lock.json generated

@ -1,13 +1,13 @@
{ {
"name": "@chartwerk/line-pod", "name": "@chartwerk/line-pod",
"version": "0.4.4", "version": "0.4.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@chartwerk/core": { "@chartwerk/core": {
"version": "0.3.2", "version": "0.3.3",
"resolved": "https://registry.npmjs.org/@chartwerk/core/-/core-0.3.2.tgz", "resolved": "https://registry.npmjs.org/@chartwerk/core/-/core-0.3.3.tgz",
"integrity": "sha512-E4Bb2rDBDTNXRM7koSXDwM6IYYNdLnqxJel1y2BmH4p9R0Z+3L0C4B+jYurkiwcnIWdGlHXVFL0E0khPeLypfA==" "integrity": "sha512-aauWwYLPeMuLF727twW74GW6Uw2yqPXD8vYuFle/4nN4xjKbjWJvU7/9wlF4xh/azrpOrYWdD4l4SD25u8DzUg=="
}, },
"@types/d3": { "@types/d3": {
"version": "5.16.4", "version": "5.16.4",

4
package.json

@ -1,6 +1,6 @@
{ {
"name": "@chartwerk/line-pod", "name": "@chartwerk/line-pod",
"version": "0.4.4", "version": "0.4.5",
"description": "Chartwerk line chart", "description": "Chartwerk line chart",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
@ -15,7 +15,7 @@
"author": "CorpGlory", "author": "CorpGlory",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@chartwerk/core": "^0.3.2" "@chartwerk/core": "^0.3.3"
}, },
"devDependencies": { "devDependencies": {
"@types/d3": "5.16.4", "@types/d3": "5.16.4",

Loading…
Cancel
Save