You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/08/25 03:03:45 UTC

[GitHub] [incubator-echarts] CurryChou777 opened a new issue #13179: in gauge,value don't display 5.00

CurryChou777 opened a new issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179


   ### Version
   4.7.0
   
   ### Steps to reproduce
   1、Set a default value of 5.00 in the gauge
   2、But it turns out to be 5
   
   ### What is expected?
   Expect to be displayed after the decimal point
   
   ### What is actually happening?
   When the actual decimal point is 0, the decimal point is ignored
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679826522


   The type of value is `number`, for the decimal or other forms, you could try [`series-gauge.detail.formatter`](https://echarts.apache.org/en/option.html#series-gauge.detail.formatter).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679964778


   Oh, I meant that you need a formatter I mentioned to do this, but not need to change the data.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] CurryChou777 commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
CurryChou777 commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679940455


   yes,now i do this by `value.toFxed(2)`,value is 5


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] CurryChou777 commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
CurryChou777 commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679849668


   that's OK. but 5.01 is also a number, it can be displayed normally.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] CurryChou777 edited a comment on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
CurryChou777 edited a comment on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679940455


   yes,now i do this by `value.toFxed(2)`,value is 5
   The chart accepts data of 5.00,but it dispalyed 5


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679855389


   `5.00` === `5`
   If the decimal part of a number is `0`, the decimal part is ignored. `5.00` is but `5.01` is not.
   If you have to make it display `5.00`, converting the number to a string is required, such as by `toFixed`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13179: in gauge,value don't display 5.00

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13179:
URL: https://github.com/apache/incubator-echarts/issues/13179#issuecomment-679483948


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org