decimals in chart view

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

decimals in chart view

danji_ma90
Hello,

the default decimals in SOS map client are 3, but is there any way in SOS to increase the number of decimals in the chart view of the map client?

Thanks for the help,

Daniel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

jansch
Hi Daniel,

where exactly do you see 3 decimals? I created a case where all values
ends with many decimals and i always see 2 decimals. At the axis in the
flot chart and in the tooltip when hovering over it. The rounding in the
tooltip can be change or disabled with the toFixed methode in the
tooltipCtrl.js [1]. Currently I don't know how to handle it for the
xaxis, but this should also be happen automatically for the visible range.

Best regards,
Jan

[1]
https://github.com/52North/sensorweb-client-core/blob/develop/src/js/Chart/controller/tooltipCtrl.js#L23


On 06.06.2017 17:31, danji_ma90 wrote:

> Hello,
>
> the default decimals in SOS map client are 3, but is there any way in SOS to
> increase the number of decimals in the chart view of the map client?
>
> Thanks for the help,
>
> Daniel
>
>
>
> --
> View this message in context: http://sensorweb.forum.52north.org/decimals-in-chart-view-tp4028960.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>

--
Jan Schulte
52°North GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
Fon: +49 251 396371 - 37
Fax: +49 251 396371 - 11
Web: http://52north.org

General Managers:
Albert Remke, Andreas Wytzisk
Local Court Münster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

danji_ma90
Hi Jan,
when I select a station and a phenomenon in the map client (helgoland) it switches to diagram view and shows the graph. when I click on chart view to check the values, the maximum decimals are 3 (eg: -0.351), although the raw data we fed into the db has more. SOS seems to round the values to 3 decimals. When downloading the data the values also have a max of 3 decimals, which might lead to data inaccuracy  for people using our data. Is there a way to increase the decimals SOS reads from the db?

Here is a link to our service in case you want to see for yourself:

http://monalisasos.eurac.edu/sos/static/client/helgoland/index.html#/map

I checked the tooltipCtrl.js file, but I can't find the toFixed method and don't think tha's what I'm looking for.

Thanks again for the help,

Daniel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

Henning Bredel-2
Hey,

you should have a look at the SOS configuration. There you can set the max number of decimals somewhere.

Best

  Henning


Am 07.06.2017 16:05 schrieb "danji_ma90" <[hidden email]>:
Hi Jan,
when I select a station and a phenomenon in the map client (helgoland) it
switches to diagram view and shows the graph. when I click on chart view to
check the values, the maximum decimals are 3 (eg: -0.351), although the raw
data we fed into the db has more. SOS seems to round the values to 3
decimals. When downloading the data the values also have a max of 3
decimals, which might lead to data inaccuracy  for people using our data. Is
there a way to increase the decimals SOS reads from the db?

Here is a link to our service in case you want to see for yourself:

http://monalisasos.eurac.edu/sos/static/client/helgoland/index.html#/map

I checked the tooltipCtrl.js file, but I can't find the toFixed method and
don't think tha's what I'm looking for.

Thanks again for the help,

Daniel



--
View this message in context: http://sensorweb.forum.52north.org/decimals-in-chart-view-tp4028960p4028962.html
Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

danji_ma90
Hi Henning,
I have now checked the settings in the online interface and in the webapp folder and can't find any reference to the max number of decimals. Could you maybe be a bit more specific on where to find the configuration please?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

Henning Bredel-5
Hey,

probably I was wrong ... the SOS admin interface can't configure such properties
via admin interface (as this is a per-series property).

However, there's mapping property you may want to set manually:

  WEB-INF/classes/mapping/extension/readonly/SeriesResource.hbm.xml

Set the 'formula'-value of property 'numberOfDecimals' to the number of decimals
you want. This should do the trick.

Hope this helps

  Henning

On 20.06.2017 11:14, danji_ma90 wrote:

> Hi Henning,
> I have now checked the settings in the online interface and in the webapp
> folder and can't find any reference to the max number of decimals. Could you
> maybe be a bit more specific on where to find the configuration please?
>
>
>
> --
> View this message in context: http://sensorweb.forum.52north.org/decimals-in-chart-view-tp4028960p4028967.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: decimals in chart view

danji_ma90
Thanks a lot, Henning. That did the trick
Loading...