How to reverse the direction of the chart

Description

how to reverse the direction of the chart, so that the points are drawn not from right to left

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

PC

What LVGL version are you using?

v7

What do you want to achieve?

reverse the direction of the chart

Screenshot and/or video

Безымянный

Hi,

For a custom order the easiest using lv_chart_set_ext_array.
See https://docs.lvgl.io/latest/en/html/widgets/chart.html#set-an-external-data-source

thank you!)

Yes I know this is an old thread–but it is what comes up in search results for “reverse chart direction”, so I figured I could add this for continuity: Chart Shift Direction - #4 by WebDust21

TLDR; modified the existing LVGL v8 chart data input function to just reverse the direction data where it’s inputted to the array. Very simple, and works a charm.