How to skip to specific data point

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.


     Simple button so i can skip to a specific tick in line chart

What MCU/Processor/Board and compiler are you using?

     teensy 4.1

What LVGL version are you using?


What do you want to achieve?

I want to create a button that when pressed the chart will refresh to a different tick. Basically
instead of having to swipe to get to a specific tick i want to just click a button to skip 60 ticks at a time on x-axis

What have you tried so far?

    lv_chart_set_x_start_point(Chart, Series_V, 1400);
    lv_chart_set_x_start_point(Chart, Series_A, 1400);

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

You can use lv_obj_scroll_by_bounded(chart,to_scroll_in_x, 0, LV_ANIM_ON); to scroll the chart manually.

You can read more about scrolling here: Scroll — LVGL documentation

Thank you!