From 65415d3f688c2295f55b48ad3236fa0a088e2f8d Mon Sep 17 00:00:00 2001 From: guoweilkd <35251456+guoweilkd@users.noreply.github.com> Date: Mon, 2 Aug 2021 17:51:18 +0800 Subject: [PATCH] docs(chart) typos (#2427) --- docs/widgets/extra/chart.md | 2 +- src/extra/widgets/chart/lv_chart.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/widgets/extra/chart.md b/docs/widgets/extra/chart.md index 4bd255ddf..124d4ed6c 100644 --- a/docs/widgets/extra/chart.md +++ b/docs/widgets/extra/chart.md @@ -65,7 +65,7 @@ You have several options to set the data of series: 3. Use the `lv_chart_set_next_value(chart, ser, value)`. 4. Initialize all points to a given value with: `lv_chart_set_all_value(chart, ser, value)`. -Use `LV_CHART_POINT_DEF` as value to make the library skip drawing that point, column, or line segment. +Use `LV_CHART_POINT_NONE` as value to make the library skip drawing that point, column, or line segment. For `LV_CHART_TYPE_SCATTER` type `lv_chart_set_value_by_id2(chart, ser, id, value)` and `lv_chart_set_next_value2(chart, ser, x_valuem y_value)` can be used as well. diff --git a/src/extra/widgets/chart/lv_chart.h b/src/extra/widgets/chart/lv_chart.h index cc3db3041..8bf1d6ce7 100644 --- a/src/extra/widgets/chart/lv_chart.h +++ b/src/extra/widgets/chart/lv_chart.h @@ -358,7 +358,7 @@ lv_point_t lv_chart_get_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * curso * Initialize all data points of a series with a value * @param obj pointer to chart object * @param ser pointer to a data series on 'chart' - * @param value the new value for all points. `LV_CHART_POINT_DEF` can be used to hide the points. + * @param value the new value for all points. `LV_CHART_POINT_NONE` can be used to hide the points. */ void lv_chart_set_all_value(lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value);