.. index:: pair: struct; EE::UI::Charts::ChartStyle .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_style: struct EE::UI::Charts::ChartStyle ================================= .. toctree:: :hidden: Overview ~~~~~~~~ View appearance. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct ChartStyle { // fields :ref:`Font`* :ref:`font` { nullptr }; :ref:`Float` :target:`fontSize` { 12.f }; :ref:`Float` :target:`tickLength` { 4.f }; :ref:`Float` :target:`tickLabelGap` { 6.f }; :ref:`Float` :target:`axisLabelGap` { 25.f }; :ref:`Float` :target:`axisLabelInset` { 2.f }; :ref:`Float` :target:`leftMargin` { 50.f }; :ref:`Float` :target:`rightMargin` { 14.f }; :ref:`Float` :target:`topMargin` { 12.f }; :ref:`Float` :target:`topMarginWithLabel` { 26.f }; :ref:`Float` :target:`bottomMargin` { 34.f }; :ref:`Float` :target:`bottomMarginWithLabel` { 52.f }; :ref:`Float` :target:`minimumAxisMargin` { 42.f }; :ref:`Float` :target:`axisLabelPadding` { 12.f }; :ref:`Float` :target:`rightAxisLabelPadding` { 16.f }; :ref:`Float` :target:`xTickSpacing` { 80.f }; :ref:`Float` :ref:`xTickLabelAngle` { 0.f }; :ref:`ChartTickLabelAnchor` :ref:`xTickLabelAnchor` { :ref:`ChartTickLabelAnchor::Center` }; :ref:`Float` :target:`yTickSpacing` { 50.f }; :ref:`Float` :target:`hoverDistance` { 10.f }; :ref:`Float` :target:`axisWidth` { 1.f }; std::optional<:ref:`Color`> :target:`axisColor`; std::optional<:ref:`Color`> :target:`tickColor`; std::optional<:ref:`Color`> :target:`tickLabelColor`; std::optional<:ref:`Color`> :target:`axisLabelColor`; std::optional<:ref:`Color`> :target:`hoverColor`; std::optional<:ref:`Color`> :target:`seriesColor`; :ref:`ChartGridStyle` :target:`verticalGrid` { :ref:`ChartGridMode::Disabled`, 80.0 }; :ref:`ChartGridStyle` :target:`horizontalGrid` { :ref:`ChartGridMode::Disabled`, 50.0 }; }; .. _details-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_style: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ View appearance. Linear measurements use device-independent pixels (dp), including grid spacing in screen mode. Tick spacing is a target: the axis chooses readable intervals near that distance. Colors left unset follow the :ref:`UI ` theme. The style does not own its optional font or grid axes. Fields ------ .. index:: pair: variable; font .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_style_1aae980c51722d75ebd362814b8c656507: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Font`* font { nullptr } Non-owning; null uses the current :ref:`UI ` theme font. .. index:: pair: variable; xTickLabelAngle .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_style_1ab29f9a3cf411863bc79b85ab1e8c77e3: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` xTickLabelAngle { 0.f } Clockwise degrees, clamped to [-90, 90]; -90 reads bottom-to-top. .. index:: pair: variable; xTickLabelAnchor .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_style_1a19dc0ce8d558e5d779d2bb39f1cb17af: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`ChartTickLabelAnchor` xTickLabelAnchor { :ref:`ChartTickLabelAnchor::Center` } Label position attached to the X tick after rotation.