Git Product home page Git Product logo

Comments (8)

liamHowatt avatar liamHowatt commented on June 12, 2024 1

Hey,

This example uses lv_scale as a chart axis. You should be able to achieve all of the same effects lv_scale. Let me know if you need any clarification or help achieving what you need.

https://docs.lvgl.io/master/examples.html#axis-ticks-and-labels-with-scrolling

from lvgl.

xinsuinizhuan avatar xinsuinizhuan commented on June 12, 2024 1

We have a separate scale widget, because the scale-like behaviour is uses on a lot places. This way the scale can be used in a more flexible and modular way. For example you can make it scroll with the chart or make it fixed.

However I agree that some helper functions would be nice to make it easier to add the axis to the chart. (or at least some better example would be great) I can't immerse in now, so ideas are very welcome.

Yes,i agree to custom, but i thongt not all widgets that use the scale to custom,some helper functions would be nice to make it easier to add the axis to the chart。when to add them back?

from lvgl.

xinsuinizhuan avatar xinsuinizhuan commented on June 12, 2024

I think the lv_chart_set_axis_tick and lv_chart_set_zoom_x is needed, if they could not achieve the effect, then i could use the scale, not all functions to custom.

from lvgl.

xinsuinizhuan avatar xinsuinizhuan commented on June 12, 2024

others, the scale need to create a obj, then to create the scale, but when i use the lv_chart_set_axis_tick and lv_chart_set_zoom_x,it set to chart directly, not need to create the obj.

from lvgl.

liamHowatt avatar liamHowatt commented on June 12, 2024

Perhaps we can bring those functions back. It must have been changed for a reason though. This is the commit that removed those functions and here are all the other changes that day, Oct 12, 2023. @kisvegabor, what's the history behind it?

from lvgl.

kisvegabor avatar kisvegabor commented on June 12, 2024

We have a separate scale widget, because the scale-like behaviour is uses on a lot places. This way the scale can be used in a more flexible and modular way. For example you can make it scroll with the chart or make it fixed.

However I agree that some helper functions would be nice to make it easier to add the axis to the chart. (or at least some better example would be great) I can't immerse in now, so ideas are very welcome.

from lvgl.

lvgl-bot avatar lvgl-bot commented on June 12, 2024

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

from lvgl.

lvgl-bot avatar lvgl-bot commented on June 12, 2024

As there was no activity here for a while we close this issue. But don't worry, the conversation is still here and you can get back to it at any time.

So feel free to comment if you have remarks or ideas on this topic.

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.