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

Formating values in charts? #58

Closed
codmpm opened this issue Sep 13, 2016 · 6 comments
Closed

Formating values in charts? #58

codmpm opened this issue Sep 13, 2016 · 6 comments

Comments

@codmpm
Copy link

codmpm commented Sep 13, 2016

Will it be possible to format the values displayed by the charts?

I can not format the incoming data as it is needed to render the chart correctly but it would be nice to allow formating the output with a value format like the gauges offer.

Furthermore will it be possible to format the data to a local value? Like 25,5 °C? I see that Angular Filters offer i18n but dont know if these are pressent in node-red/node-red-dashbaord and of course not how to use them ;-)

Thank you so much for your hard work. Many thanks!

Cheers,
pm

@dceejay
Copy link
Member

dceejay commented Sep 13, 2016

Hi - which values are you talking about ? The y-axis scale ? or the hover over ?
We use https://angularjs-nvd3-directives.github.io/angularjs-nvd3-directives/line.chart.html
So not sure yet how exposed that would be.

@codmpm
Copy link
Author

codmpm commented Sep 13, 2016

The y-axis is no problem thanks to you and the 2.0.2 release.
I am talking about the values in the hover to format them with {{value | number:2 }}

In generel I think it would be nice to format numbers printed on the ui elements. As for i18n like my example.

@dceejay
Copy link
Member

dceejay commented Sep 14, 2016

Hi,
ok - will have a look - as I hinted above the library we use does not appear to support i18n - so we won't be able to add that, though some form of reformating may be possible.

@codmpm
Copy link
Author

codmpm commented Sep 14, 2016

Don't be to hard on this one. i18n for node-red-dashboard in generel would be nice sometime. But formating will help till then :-)

Thank you!

@dceejay
Copy link
Member

dceejay commented Oct 5, 2016

Will leave this until #38 is resolved... as it may mean a change in underlying library.

@dceejay
Copy link
Member

dceejay commented Dec 2, 2016

Going to close this one now as we are (nearly) moved to charts.js library... so will wait for someone to open a new version.

@dceejay dceejay closed this as completed Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants