How to use chart widgets draw harmonic bar graph


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


What LVGL version are you using?


What do you want to achieve?

What have you tried so far?

I want to display the 51st harmonic bar graph as shown in the picture.
I looked at the lv_chart control. Can’t try the desired effect.
There are several problems:

  1. The chart supports the maximum number of points lv_chart_set_point_count(chart,max_count).
  2. How to remove background lines.
  3. The pixel width of the bar graph.
  4. The distance between two bar graph.

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:

/*You code here*/

Screenshot and/or video

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