Skip to content

Commit

Permalink
fix: fix axis label rotate layout problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Aug 28, 2023
1 parent 6a4f940 commit f437897
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 164 deletions.
183 changes: 73 additions & 110 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/vtable/examples/pivot-chart/aeolus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,10 @@ export function createTable() {
style: {
fontSize: 12,
fill: '#6F6F6F',
angle: 0,
angle: 45,
fontWeight: 'normal'
},
// containerAlign: 'bottom',
minGap: 4,
flush: true
},
Expand Down
6 changes: 3 additions & 3 deletions packages/vtable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
"ci": "ts-node --transpileOnly --skipProject ./scripts/trigger-test.ts"
},
"dependencies": {
"@visactor/vrender": "0.13.10",
"@visactor/vrender-components": "0.13.11",
"@visactor/vrender": "0.14.5",
"@visactor/vrender-components": "0.14.5",
"@visactor/vutils": "~0.15.7",
"@visactor/vscale": "~0.15.7",
"@visactor/vdataset": "~0.15.7",
"cssfontparser": "^1.2.1"
},
"devDependencies": {
"@visactor/vchart": "1.2.1-alpha.3",
"@visactor/vchart": "1.3.0-beta.6",
"@internal/bundler": "workspace:*",
"@internal/eslint-config": "workspace:*",
"@internal/ts-config": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion packages/vtable/src/components/axis/get-axis-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export function getAxisAttributes(option: ICellAxisOption) {
}

return {
orient: spec.orient,
select: spec.select,
hover: spec.hover,
line: transformAxisLineStyle(spec.domainLine),
Expand All @@ -130,7 +131,8 @@ export function getAxisAttributes(option: ICellAxisOption) {
return spec.label.formatMethod(datum.rawValue, datum);
}
: null,
state: transformStateStyle(spec.label.state)
state: transformStateStyle(spec.label.state),
containerAlign: spec.label.containerAlign
},
tick: {
visible: spec.tick.visible,
Expand Down
Loading

0 comments on commit f437897

Please sign in to comment.