opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 896 forks source link

[Feature Request] Global font size settings to adjust font size of axis labels #8904

Open selgebali opened 3 days ago

selgebali commented 3 days ago

Is your feature request related to a problem? Please describe

I am experiencing difficulty adjusting the font size of the x and y-axis labels in OpenSearch Dashboards visualizations. The default font size is too small for presentations or displays that require larger text for better readability. Currently, there is no straightforward way to universally change the font size of axis labels through the user interface or settings. When inspecting the elements of a visualization, I see that the axis label text elements have a font-size set to 8pt. Manually changing this value in the browser's developer tools to 18pt provides the desired readability but is not a sustainable solution.

<text dy=".32em" x="-9" y="0" style="text-anchor: end; font-size: 8pt;">0</text>

Describe the solution you'd like

I would like OpenSearch Dashboards to provide an option to adjust the font size of axis labels in visualizations. This feature could be implemented in several ways:

Global Font Size Setting: A global configuration option in OpenSearch Dashboards settings that allows users to set the default font size for axis labels across all visualizations.

Visualization-Level Font Size Control: An option within the visualization editor under a "Style" or "Appearance" tab where users can adjust the font size for axis labels on a per-visualization basis.

Accessibility Enhancements: Including font size adjustments as part of accessibility features to improve readability for all users.

Related component

Other

Describe alternatives you've considered

I have explored several alternative solutions, but they have significant limitations:

Custom CSS Injection via Browser Extensions:

Additional context

Impact on Users:

andrross commented 1 day ago

@opensearch-project/admin Can this be transferred to https://github.com/opensearch-project/OpenSearch-Dashboards ?