Lines Matching refs:chart

25 - show precise locations of points or other locations on chart with cursors
36 Each chart has the following attributes (over and above attributes found in
39 Type (governs how a chart's data series are drawn)
41 - You can change the chart's type at any point during it's life.
48 - All 4 axes come with each chart automatically (they do not have to be created).
50 chart is drawn.
55 Point count (number of data points in all data series added to the chart)
65 - After a chart is created, it initially contains no data series. You have to add them.
66 - You can add and remove data series at any time during a chart's life.
68 based on its chart type and ``point_count``. (All chart types use an array of
71 - To get points to be drawn on the chart, you must set their Y-values to something
84 - After a chart is created, it initially contains no cursors. You have to add them
86 - You can add, show, hide or remove cursors at any time during a chart's life.
94 When a chart is drawn, certain things appear on top of other things, in this
97 - The chart's background (with optional division lines)
101 - For a SCATTER chart, within each series, points later in the sequence will appear
115 - :cpp:enumerator:`LV_PART_MAIN` The background of the chart. Uses the :ref:`typical
119 - :cpp:enumerator:`LV_PART_SCROLLBAR` A scrollbar used if the chart is zoomed. See
123 - LINE chart: *line* properties are used by lines.
126 - Bar chart: The typical background properties are used to style the
146 A chart can be one of the following types:
148 - :cpp:enumerator:`LV_CHART_TYPE_NONE`: Do not display any data. Can be used to hide chart's data.
154 - :cpp:enumerator:`LV_CHART_TYPE_SCATTER`: X/Y chart drawing point's and optionally
158 SCATTER chart can be suppressed if their Y-values are set to :c:macro:`LV_CHART_POINT_NONE`.)
160 Charts start their life as LINE charts. You can change a chart's type with
161 :cpp:expr:`lv_chart_set_type(chart, LV_CHART_TYPE_...)`.
166 You can add any number of data series to a chart by using
168 :cpp:expr:`lv_chart_add_series(chart, color, axis)`.
172 with an array of ``chart->point_cnt`` ``int32_t`` Y-values, all set to
173 :c:macro:`LV_CHART_POINT_NONE`. (A SCATTER chart also comes with a pre-allocated array of
183 When adding a data series to a SCATTER chart, bit-wise OR your selected Y axis
186 If you wish to have the chart use your own Y-value array instead of the one provided,
189 :cpp:expr:`lv_chart_set_ext_y_array(chart, series, value_array)`.
192 ``chart->point_cnt`` elements in it.
200 Call :cpp:expr:`lv_chart_refresh(chart)` when a chart's data has changed to
201 signal that the chart should be re-rendered next time a display refresh occurs.
207 :cpp:expr:`lv_chart_get_y_array(chart, series)`. This is true whether you are using
212 - :cpp:expr:`lv_chart_set_ext_x_array(chart, series, value_array)` and
213 - :cpp:expr:`lv_chart_get_x_array(chart, series)`
223 chart with :cpp:expr:`lv_chart_refresh(chart)`.
224 2. Use :cpp:expr:`lv_chart_set_value_by_id(chart, series, id, value)` where ``id`` is
226 3. Use :cpp:expr:`lv_chart_set_next_value(chart, series, value)`.
228 4. Set all points to a single Y-value with :cpp:expr:`lv_chart_set_all_values(chart, series, value)…
235 - :cpp:expr:`lv_chart_set_value_by_id2(chart, series, id, x_value, y_value)` and
236 - :cpp:expr:`lv_chart_set_next_value2(chart, series, x_value, y_value)`
253 :cpp:expr:`lv_chart_set_update_mode(chart, LV_CHART_UPDATE_MODE_...)`.
259 :cpp:expr:`lv_chart_set_point_count(chart, point_num)`. The default value is 10.
277 :cpp:expr:`lv_chart_set_range(chart, axis, min, max)`. ``axis`` can be
288 :cpp:expr:`lv_chart_set_div_line_count(chart, hdiv_num, vdiv_num)`. The default
292 as not to hide the chart border.
299 function :cpp:expr:`lv_chart_set_x_start_point(chart, series, id)` where ``id`` is
315 To zoom the chart all you need to do is wrap it in a parent container and set the
316 chart's width and/or height to a larger value. Doing this will cause the the chart
327 You can hide a cursor without removing it from the chart by using
331 A cursor can be added with ``lv_chart_cursor_t * c1 = lv_chart_add_cursor(chart, color, dir);``.
334 the chart which direction(s) to draw its lines.
336 :cpp:expr:`lv_chart_set_cursor_pos(chart, cursor, &point)` sets the position of
337 the cursor to an arbitrary point on the chart. ``&point`` is a pointer to an
338 :cpp:struct:`lv_point_t` variable. E.g. ``lv_point_t point = {10, 20}``. If the chart
341 :cpp:expr:`lv_chart_get_point_pos_by_id(chart, series, id, &point_out)` gets the
342 coordinate of a given point on the chart. This is useful to place the cursor on
345 :cpp:expr:`lv_chart_set_cursor_point(chart, cursor, series, point_id)` places the
346 cursor on the specified data point on the chart. If the point's position changes
357 - :cpp:enumerator:`LV_EVENT_VALUE_CHANGED` Sent when a new point on the chart is pressed.
358 :cpp:expr:`lv_chart_get_pressed_point(chart)` returns the zero-based index of
387 .. include:: ../../examples/widgets/chart/index.rst