We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
padding auto 时,Y 轴 label 关闭后,左右 padding 异常宽
显示合理的 padding( i.e. 默认值?)
官方代码修改
/** * A recreation of this demo: https://observablehq.com/@d3/bar-chart */ import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', theme: 'classic', autoFit: true, padding: 'auto', }); chart .interval() .data({ type: 'fetch', value: 'https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv', }) .encode('x', 'letter') .encode('y', 'frequency') .axis("y", { "label": false }); chart.render();
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
问题描述
padding auto 时,Y 轴 label 关闭后,左右 padding 异常宽
![image](https://private-user-images.githubusercontent.com/1549118/255335838-c9f946c6-1e38-4991-928b-7b65013b1877.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTkzMTIsIm5iZiI6MTczOTMxOTAxMiwicGF0aCI6Ii8xNTQ5MTE4LzI1NTMzNTgzOC1jOWY5NDZjNi0xZTM4LTQ5OTEtOTI4Yi03YjY1MDEzYjE4NzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDAxMDEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDRlNDI4MTY2MmE4MmUyZDFjMzlmMTc5ODdkMmJlMjZlMDc4ZGVhZjU4OWRiNzJlZDk5M2E4YTkzMDhmYWQ0YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.rY3hHoXhVGOejDh4tnaYtrvYWw2pptSCXkXnfk0jBlg)
期望结果
显示合理的 padding( i.e. 默认值?)
如何重现
官方代码修改
额外信息
The text was updated successfully, but these errors were encountered: