.. index:: pair: class; EE::UI::Charts::LineSeries .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series: class EE::UI::Charts::LineSeries ================================ .. toctree:: :hidden: Overview ~~~~~~~~ One model-owned line. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class LineSeries { public: // methods const :ref:`String`& :target:`name`() const; :ref:`ChartAxis`& :target:`xAxis`() const; :ref:`ChartAxis`& :target:`yAxis`() const; void :ref:`setXAxis`(:ref:`ChartAxis`& axis); void :ref:`setYAxis`(:ref:`ChartAxis`& axis); void :target:`setVisible`(bool visible); bool :target:`visible`() const; void :ref:`setColor`(:ref:`Color` color); :ref:`Color` :target:`color`() const; bool :target:`hasCustomColor`() const; void :ref:`setFilled`(bool filled); bool :target:`filled`() const; void :ref:`setFillColor`(std::optional<:ref:`Color`> color); const std::optional<:ref:`Color`>& :target:`fillColor`() const; void :ref:`setWidth`(:ref:`Float` width); :ref:`Float` :target:`width`() const; void :target:`setJoin`(:ref:`LineJoin` join); :ref:`LineJoin` :target:`join`() const; void :target:`setCap`(:ref:`LineCap` cap); :ref:`LineCap` :target:`cap`() const; void :ref:`setInterpolation`(:ref:`LineInterpolation` interpolation); :ref:`LineInterpolation` :target:`interpolation`() const; void :ref:`setMiterLimit`(:ref:`Float` limit); :ref:`Float` :target:`miterLimit`() const; :ref:`Uint64` :target:`geometryRevision`() const; void :ref:`setPoints`(std::vector<:ref:`ChartPoint`> points); void :ref:`setPoints`(std::span xs, std::span ys); void :ref:`setValues`(std::span ys, double start = 0.0, double step = 1.0); void :ref:`setDataSource`(std::shared_ptr<:ref:`XYDataSource`> source); std::shared_ptr<:ref:`XYDataSource`> :target:`dataSource`() const; void :ref:`setTooltipProvider`(:ref:`PointTooltipProvider` provider); const :ref:`PointTooltipProvider`& :target:`tooltipProvider`() const; }; .. _details-class_e_e_1_1_u_i_1_1_charts_1_1_line_series: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ One model-owned line. Its axes are borrowed from the same :ref:`ChartModel `; neither this object nor a :ref:`UIChart ` owns them separately. A series can share its data source with other series. Methods ------- .. index:: pair: function; setXAxis .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1aa762bbceace6ff7f9b973b845981b008: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setXAxis(:ref:`ChartAxis`& axis) The axis must belong to this series' model and outlive the series. .. index:: pair: function; setYAxis .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a7764d8d4029c379b1d669bb40fb563cd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setYAxis(:ref:`ChartAxis`& axis) The axis must belong to this series' model and outlive the series. .. index:: pair: function; setColor .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1af8e66a28ba76a80961b994c1d42a00ed: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setColor(:ref:`Color` color) Overrides the theme's default series color. .. index:: pair: function; setFilled .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a7e6fce465958c8c2279adb649f4899a9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setFilled(bool filled) Fill the area between the line and the plot's bottom edge. Disabled by default. .. index:: pair: function; setFillColor .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1aad5bd4ef5ac1e8ec2ec4591c894aaafa: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setFillColor(std::optional<:ref:`Color`> color) Overrides the translucent line color used by the fill; null restores the default. .. index:: pair: function; setWidth .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a938296c6954305ca74549884b8ae8db8: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setWidth(:ref:`Float` width) Stroke width in device-independent pixels. .. index:: pair: function; setInterpolation .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a27814836334a56c7efcc538c66ffe3f2: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setInterpolation(:ref:`LineInterpolation` interpolation) Changes line geometry; defaults to Linear. .. index:: pair: function; setMiterLimit .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a15ec8e77fca397b1f706226186dff88b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMiterLimit(:ref:`Float` limit) Maximum miter extension as a multiple of half the line width. .. index:: pair: function; setPoints .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1af5411446f12c2baf918cb0e06cc19d55: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setPoints(std::vector<:ref:`ChartPoint`> points) Replaces the samples with an owned data source, moving the vector when possible. .. index:: pair: function; setPoints .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a67cd01d431cbcb74336773e28b15ac02: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setPoints(std::span xs, std::span ys) Copies paired X/Y samples into an owned data source. .. index:: pair: function; setValues .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a7efc2e5a2577e729c61237dff94b82a7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setValues(std::span ys, double start = 0.0, double step = 1.0) Copies Y samples with generated X values: start + index \* step. .. index:: pair: function; setDataSource .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a3ee6f7844acc168e1ab119177f8fabcb: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setDataSource(std::shared_ptr<:ref:`XYDataSource`> source) Shares ownership of the source; it may be updated independently of the :ref:`UIChart `. .. index:: pair: function; setTooltipProvider .. _doxid-class_e_e_1_1_u_i_1_1_charts_1_1_line_series_1a27ea8bc93415549e7e3bd8476751844e: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setTooltipProvider(:ref:`PointTooltipProvider` provider) Replaces the optional callback used for hover text.