Git Product home page Git Product logo

Comments (3)

Daveiano avatar Daveiano commented on May 24, 2024

Hello!

I noticed that because we are using knots, the legend for the windRose overlaps a lot on mobile. Also, seeing "knots" so many times seems redundant.
I was wondering if it would be possible to remove the unit (leaving just the range in numbers)?

I added a new configuration, windRose_legend_show_units. When set to True, the unit labels are not shown in the legend. Instead, the unit is shown once above the legend:

Screenshot

This should hopefully fix the overlapping text. The new configuration will be included in the next upcoming release!

I also removed the units from the ticks on Gauges, for a cleaner look but I couldn't figure how to do it on the windRose.

May I ask, how you did this? Probably this should be also configurable?

from weewx-wdc.

nicholaswaton avatar nicholaswaton commented on May 24, 2024

That looks great!

For the Gauge, I went in the javascript code in main.js and removed the part where it adds the unit to each tick. It was challenging to find as it was minified, but I figured it out. It would definitely be great if it could be configured.

I love also the new option for the legend position. It was also bothering me as it was often too close to the graphs.

from weewx-wdc.

Daveiano avatar Daveiano commented on May 24, 2024

For the Gauge, I went in the javascript code in main.js and removed the part where it adds the unit to each tick. It was challenging to find as it was minified, but I figured it out. It would definitely be great if it could be configured.

Sounds like a bit pain in the... I added hide_tick_unit for configuring this, will be included in 3.5.0, too.

I love also the new option for the legend position. It was also bothering me as it was often too close to the graphs.

Great, happy to hear that!

from weewx-wdc.

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.