Git Product home page Git Product logo

Comments (7)

HanSolo avatar HanSolo commented on June 2, 2024

Can you provice a graphical example about what you are looking for please?

from medusa.

robbiezl avatar robbiezl commented on June 2, 2024

Thank you for your reply. The following is the URL of the sketch I uploaded

https://pan.baidu.com/s/1V7Ap_iySwf1wZ10I8L99WA?pwd=7hxy

input code: 7hxy

from medusa.

HanSolo avatar HanSolo commented on June 2, 2024

Looks like I have only implemented it in the GaugeSkin.

Gauge gauge = GaugeBuilder.create()
                          .skinType(SkinType.GAUGE)
                          .minValue(-100)
                          .maxValue(0)
                          .tickLabelDecimals(1)
                          .startAngle(90)
                          .angleRange(270)                    
                          .decimals(2)
                          .autoScale(false)
                          .animated(true)                    
                          .build();
```
If that skin doesn't work for you, I'm afraid you need to implement it on your own (which is not too hard, depending on the skin you choose as base). If you take the BarSkin you don't need to worry about the tickmarks which is the most work to get it right. So you could create either a new skin based on the BarSkin or create a pull request with the changes.

from medusa.

robbiezl avatar robbiezl commented on June 2, 2024

Maybe my expression is not accurate enough. I want the value progress bar to express positive and negative through positive or clockwise.Now when the value is negative, the progress bar is always displayed at 0.

from medusa.

robbiezl avatar robbiezl commented on June 2, 2024

Maybe my expression is not accurate enough. I want the value progress bar to express positive and negative through positive or clockwise.Now when the value is negative, the progress bar is always displayed at 0.

from medusa.

robbiezl avatar robbiezl commented on June 2, 2024

Maybe my expression is not accurate enough. I want the value progress bar to express positive and negative through positive or clockwise.Now when the value is negative, the progress bar is always displayed at 0.

            gauge = GaugeBuilder.create().interactive(true)
            .skinType(Gauge.SkinType.BAR)
            .barColor(Color.rgb(0, 255, 0))
            .valueColor(Color.BLACK)
            .unitColor(Color.BLACK)
            .unit("KPH")
            .animated(true).value(-75)
            .build();

链接: https://pan.baidu.com/s/1yD8hsbbbCpcQuCU0txP2GQ?pwd=kjgx

from medusa.

HanSolo avatar HanSolo commented on June 2, 2024

Yes, I understand but it is not implemented in the BarSkin, so it only works in the GaugeSkin at the moment. Because I'm busy with other stuff, I won't have the time to implement it at the moment. But as mentioned for the BarSkin it should not be too hard to implement it on your own and either use your own skin based on the BarSkin or creeate a pull request which might end up in Medusa.

from medusa.

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.