Comments (10)
Could you, please, provide more detailed piece of code to make me able to reproduce this behavior?
from canvas-gauges.
from canvas-gauges.
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.
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.
@stefanpoensgen, That looks really awesome! Are you satisfied with gauges?
from canvas-gauges.
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.
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.
That would be nice 👍
from canvas-gauges.
@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.
Fixed in release 2.0.6
from canvas-gauges.
Related Issues (20)
- can't assign a deferent value to multiple gauges in one page
- canvas to SVG HOT 1
- Only Half of Linear Gauge appearing in Home Assistant HOT 1
- Horizontal rotating gauge
- No valuebox when using a horizontal linear gauge?
- radial gauge seems to be broken. HOT 2
- Upstream Dependency Conflicts
- Congratulations on your AWESOME script! HOT 1
- AnimationRule HOT 1
- Unable to change Highlight HOT 1
- Interactive Gauges
- Gauge title spanning two lines? HOT 2
- deviation mode for linear gauges HOT 1
- Canvas-Gauge HOT 1
- Draw problem after a few value updates HOT 4
- RadialGauge animationTarget = "plate" turning needle issue HOT 1
- compass gauge with int values HOT 1
- howto adjust LinearGauge to container without cutting scale
- CSS warnings "Expected color but found ‘null’
- is there a possibility to read logarithmic scales in stead of linear? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas-gauges.