Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GaugeData Format #13

Open
robertowiest opened this issue Oct 3, 2019 · 5 comments
Open

GaugeData Format #13

robertowiest opened this issue Oct 3, 2019 · 5 comments

Comments

@robertowiest
Copy link

Hello, very good your script. I am using it to report a certain temperature. However, how can I do to get gaugeLimits and gaugeData informed in the format, for example, 33˚C. I even tried to concatenate, for example, gaugeData: {
value: 33 + "˚C",
valueColor: "# ff7143"
},
but the functionality of the arrow (>) is no longer displayed

@kluverua
Copy link
Owner

kluverua commented Oct 5, 2019

try use parameter markerFormatFn

@robertowiest
Copy link
Author

Like this?

image

@the-maux
Copy link

the-maux commented Feb 20, 2020

@robertowiest Yes, for your case use it like this:

options: {
      events: [ ],
      showMarkers: True,
      markerFormatFn =  n => n + '°';
}

@bamontelucas
Copy link

It works for the markers, but not for the value.
The GaugeChartHelper.prototype.renderValueLabel function does not make use of marketFormatFn

@jhonnattan123
Copy link

jhonnattan123 commented Apr 1, 2020

Funciona para los marcadores, pero no para el valor.
La función no hace uso de GaugeChartHelper.prototype.renderValueLabel``marketFormatFn

i create a new commit with a new function for this
#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants