Home
last modified time | relevance | path

Searched refs:total_tick_num (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/chart/
Dlv_chart.c1391 uint32_t total_tick_num = (t->major_cnt - 1) * (t->minor_cnt); in draw_y_ticks() local
1392 if(total_tick_num == 0) return; in draw_y_ticks()
1442 for(i = 0; i <= total_tick_num; i++) { in draw_y_ticks()
1444 p2.y = p1.y = y_ofs + (int32_t)((int32_t)(h - line_dsc.width) * i) / total_tick_num; in draw_y_ticks()
1463 …int32_t tick_value = lv_map(total_tick_num - i, 0, total_tick_num, chart->ymin[sec_axis], chart->y… in draw_y_ticks()
1522 uint32_t total_tick_num = (t->major_cnt - 1) * (t->minor_cnt); in draw_x_ticks() local
1523 if(total_tick_num == 0) return; in draw_x_ticks()
1581 …for(i = 0; i <= total_tick_num; i++) { /*one extra loop - it may not exist in the list, empty labe… in draw_x_ticks()
1586 p2.x = p1.x = x_ofs + (int32_t)((int32_t)(w - line_dsc.width) * i) / total_tick_num; in draw_x_ticks()
1597 tick_value = lv_map(i, 0, total_tick_num, chart->xmin[sec_axis], chart->xmax[sec_axis]); in draw_x_ticks()