Browse Source

use new core with fixed scroll

merge-requests/3/merge
vargburz 2 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,
matching: true,
maxBarWidth: 20
maxBarWidth: 20,
zoomEvents: {
scroll: { zoom: { isActive: false }, pan: { isActive: false } },
}
}
);
console.time('render');
@ -35,7 +38,8 @@
function getData() {
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],

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

2
package.json

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

Loading…
Cancel
Save