dosubot[bot] commented on issue #31033: URL: https://github.com/apache/superset/issues/31033#issuecomment-2494978543
<!-- Greeting --> Hey @tatiana-cherne! I'm here to help you with any bugs, questions, or contributions you have for Superset. Feel free to ask me anything! [Dosu](https://dosu.dev) <!-- Answer --> The issue of inconsistent default padding for different chart types in Superset can be addressed by examining the padding settings in the codebase. The default padding for different chart types is set in the file `superset-frontend/plugins/plugin-chart-echarts/src/defaults.ts`, where the `defaultLegendPadding` object defines padding values for different legend orientations <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/defaults.ts)</sup>. Additionally, the `getPadding` function in `superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformers.ts` is used to determine the padding for timeseries charts, taking into account parameters like axis title offsets and zoomability <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformers.ts)</sup>. For the Table component, specific CSS classes and styles affect its alignment, such as text alignment for header and metric cells, global filter alignment, and pagination alignment <sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/Styles.js)</sup>. However, there is no specific information about the Bar Chart component's alignment in the provided context. To achieve consistent alignment across different chart types, you may need to adjust these padding settings and CSS styles to ensure that all charts are centered within their cards. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
