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

Show 0k in min value of solid gauge #5480

Closed
carlososiel opened this Issue Jul 12, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@carlososiel

carlososiel commented Jul 12, 2016

Expected behaviour

Show only the 0 value, not with k appended in the min value of graph

Actual behaviour

Show 0k in min value and not use k metrics for value when the max value % 100 != 0(example: 3880 for 3880) and when the % 100 is 0 show the value with correct metric(ex: 3.8k for 3800)

Live demo with steps to reproduce

http://jsfiddle.net/carlososiel/y3pvke9s/

Affected browser(s)

Chrome 51, Firefox 47

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jul 13, 2016

Contributor

Hi @carlososiel

You can use yAxis.labels.formatter to achieve what you need, please take a look: http://jsfiddle.net/cve6f69e/1/

Of course, you can apply your logic in the formatter (if (this.axis.max % 100 !== 0) { ... } else { ... }).

Contributor

pawelfus commented Jul 13, 2016

Hi @carlososiel

You can use yAxis.labels.formatter to achieve what you need, please take a look: http://jsfiddle.net/cve6f69e/1/

Of course, you can apply your logic in the formatter (if (this.axis.max % 100 !== 0) { ... } else { ... }).

@pawelfus pawelfus closed this Jul 13, 2016

@pawelfus pawelfus added the Not a bug label Jul 13, 2016

@carlososiel

This comment has been minimized.

Show comment
Hide comment
@carlososiel

carlososiel Jul 13, 2016

Hi @pawelfus, thanks for your answer, this is a way to solved this issue, but i think that is a bug the 0 value not should show k letter in min value

carlososiel commented Jul 13, 2016

Hi @pawelfus, thanks for your answer, this is a way to solved this issue, but i think that is a bug the 0 value not should show k letter in min value

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jul 13, 2016

Contributor

Let me reopen this ticket then, we will discuss this.

Contributor

pawelfus commented Jul 13, 2016

Let me reopen this ticket then, we will discuss this.

@pawelfus pawelfus reopened this Jul 13, 2016

@pawelfus pawelfus added Undecided and removed Not a bug labels Jul 13, 2016

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Jul 22, 2016

Collaborator

Agreed, zero is zero.

Minimal example: http://jsfiddle.net/highcharts/7tajx4mj/

Collaborator

TorsteinHonsi commented Jul 22, 2016

Agreed, zero is zero.

Minimal example: http://jsfiddle.net/highcharts/7tajx4mj/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment