fix(examples) use LV_PART_INDICATOR to target the points on line chart
This commit is contained in:
@@ -74,7 +74,7 @@ void lv_example_chart_5(void)
|
||||
lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_Y, -1000, 1000);
|
||||
|
||||
/*Do not display points on the data*/
|
||||
lv_obj_set_style_size(chart, 0, LV_PART_ITEMS);
|
||||
lv_obj_set_style_size(chart, 0, LV_PART_INDICATOR);
|
||||
|
||||
lv_chart_series_t * ser = lv_chart_add_series(chart, lv_color_red(), LV_CHART_AXIS_PRIMARY_Y);
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ void lv_example_chart_6(void)
|
||||
lv_obj_t * label = lv_label_create(lv_scr_act());
|
||||
lv_label_set_text(label, "Click on a point");
|
||||
lv_obj_align_to(label, chart, LV_ALIGN_OUT_TOP_MID, 0, -5);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user