Git Product home page Git Product logo

Comments (10)

Mikhus avatar Mikhus commented on July 20, 2024

Could you, please, provide more detailed piece of code to make me able to reproduce this behavior?

from canvas-gauges.

stefanpoensgen avatar stefanpoensgen commented on July 20, 2024

code.txt

from canvas-gauges.

Mikhus avatar Mikhus commented on July 20, 2024

Thank you for contribution!
Yes, there is a problem with this example. I will add some additional dumb checks which would prevent of these kind of problems in the next release. BTW, you can fix this issue on your side simply changing the type of the initial value you assign to the gauge by modifying this line:

gaugePS.value = "510";

to this one:

gaugePS.value = 510;

UPDATE
From other hand you can set initial value directly bypassing it with gauge options:

new RadialGauge({
  renderTo: 'gauge-ps',
  value: 510,
  // ...other options...
});

Hope it helps!

from canvas-gauges.

stefanpoensgen avatar stefanpoensgen commented on July 20, 2024

ok that was to easy :)
you can see my working example on my demo page http://new.mcchip-dkr.com/chiptuning-fahrzeug-datenbank

You need to select a car in the selects.

PKW -> Mercedes Benz ->C-Kl. (W204) -> 63 AMG 6.3 V8 457PS

Now you could see a button "Stufe 1", click on it an switch to "Stufe 2" or something else.

from canvas-gauges.

Mikhus avatar Mikhus commented on July 20, 2024

@stefanpoensgen, That looks really awesome! Are you satisfied with gauges?

from canvas-gauges.

stefanpoensgen avatar stefanpoensgen commented on July 20, 2024

yes it's awesome. exactly what i need for my new website. and it runs so smooth even on mobile devices.
and i could export it to pdf thats really cool. mercedes-benz-c-kl.-w204-63-amg-6.3-v8-stufe-6-mc830_print.pdf

But i want to set font to italic mode and could not find how to archieve that

from canvas-gauges.

Mikhus avatar Mikhus commented on July 20, 2024

For the moment it is not that easy to achieve... The only possible way I could imagine is that you may use the font which has italic glyph, but it is too crappy.

I will add a bit more advanced font-styling features in the next release, so you would be able to do that.

from canvas-gauges.

stefanpoensgen avatar stefanpoensgen commented on July 20, 2024

That would be nice 👍

from canvas-gauges.

Mikhus avatar Mikhus commented on July 20, 2024

@stefanpoensgen Release 2.0.6 is published moments ago. You can now configure font-style and font-weight on gauge text elements. More info in docs

from canvas-gauges.

Mikhus avatar Mikhus commented on July 20, 2024

Fixed in release 2.0.6

from canvas-gauges.

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.