docs(chart) typos (#2427)

This commit is contained in:
guoweilkd
2021-08-02 17:51:18 +08:00
committed by GitHub
parent 980a95ce5d
commit 65415d3f68
2 changed files with 2 additions and 2 deletions

View File

@@ -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)`. 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)`. 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. 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.

View File

@@ -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 * Initialize all data points of a series with a value
* @param obj pointer to chart object * @param obj pointer to chart object
* @param ser pointer to a data series on 'chart' * @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); void lv_chart_set_all_value(lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value);