Browse Source

use new core with fixed scroll

merge-requests/3/merge
vargburz 3 years ago
parent
commit
a89fbfa22f
  1. 8
      demo.html
  2. 2
      dist/index.js
  3. 9
      package-lock.json
  4. 2
      package.json

8
demo.html

@ -26,7 +26,10 @@
}, },
stacked: true, stacked: true,
matching: true, matching: true,
maxBarWidth: 20 maxBarWidth: 20,
zoomEvents: {
scroll: { zoom: { isActive: false }, pan: { isActive: false } },
}
} }
); );
console.time('render'); console.time('render');
@ -35,7 +38,8 @@
function getData() { function getData() {
return [ return [
[100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10],
[100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10],
[100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10],
[100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10],
[100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10], [100, 15], [110, 20], [300, 10],

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

9
package-lock.json generated

@ -1,13 +1,12 @@
{ {
"name": "@chartwerk/bar-chart", "name": "@chartwerk/bar-pod",
"version": "0.2.4", "version": "0.2.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@chartwerk/core": { "@chartwerk/core": {
"version": "0.3.4", "version": "gitlab:chartwerk/core#23b38f67809f64f021ea40998f8033c9a5100b31",
"resolved": "https://registry.npmjs.org/@chartwerk/core/-/core-0.3.4.tgz", "from": "gitlab:chartwerk/core#23b38f67809f64f021ea40998f8033c9a5100b31"
"integrity": "sha512-dDk+xjcR0XVzTrsQnXlQh6syg41gdn2yh6+q+HPMHwG28+OpFoyRufIPhxzobWp8orINn0PtlfnzgYkfnuSIPg=="
}, },
"@types/d3": { "@types/d3": {
"version": "5.16.4", "version": "5.16.4",

2
package.json

@ -15,7 +15,7 @@
"author": "CorpGlory", "author": "CorpGlory",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@chartwerk/core": "^0.3.4" "@chartwerk/core": "gitlab:chartwerk/core#23b38f67809f64f021ea40998f8033c9a5100b31"
}, },
"devDependencies": { "devDependencies": {
"@types/d3": "^5.7.2", "@types/d3": "^5.7.2",

Loading…
Cancel
Save