.. index:: pair: struct; EE::UI::Charts::ChartGridStyle .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style: struct EE::UI::Charts::ChartGridStyle ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ One grid direction. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct ChartGridStyle { // fields :ref:`ChartGridMode` :target:`mode` { :ref:`ChartGridMode::Disabled` }; double :ref:`spacing` { 80.0 }; double :ref:`offset` { 0.0 }; :ref:`Float` :ref:`width` { 1.f }; std::optional<:ref:`Color`> :ref:`color`; const :ref:`ChartAxis`* :ref:`axis` { nullptr }; }; .. _details-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ One grid direction. AxisTicks chooses nice data values near the requested dp spacing. Fields ------ .. index:: pair: variable; spacing .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style_1a0cd921faaf59fdcda52ab5a86af2fcee: .. ref-code-block:: cpp :class: doxyrest-title-code-block double spacing { 80.0 } Target dp for ticks, axis units for data, dp for screen. .. index:: pair: variable; offset .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style_1a4eda3970b82df2611a3c3fcab52276ec: .. ref-code-block:: cpp :class: doxyrest-title-code-block double offset { 0.0 } Data origin, or dp from the plot's left/top edge. .. index:: pair: variable; width .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style_1afef23051b69d599e7abee16b9bf27233: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` width { 1.f } Stroke width in dp. .. index:: pair: variable; color .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style_1af3250b836611f2e5f09a847211b22814: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::optional<:ref:`Color`> color Unset follows the theme's axis color at reduced opacity. .. index:: pair: variable; axis .. _doxid-struct_e_e_1_1_u_i_1_1_charts_1_1_chart_grid_style_1ab947510191aa28f0ed6c68605f574a0f: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`ChartAxis`* axis { nullptr } Non-owning; null selects the primary axis. A set axis must belong to the model.