blacklabel / indicators

Indicators plugin for Highstock by Black Label
http://blacklabel.github.io/indicators/
Other
35 stars 12 forks source link

Missing configurable decimal for indicator tooltip value in latest update #56

Open lakshmikant4u opened 7 years ago

lakshmikant4u commented 7 years ago

In previous versions we have "series.options.tooltip.valueDecimals" which sets decimal value for indicators for tooltip i,e precision provided by user or 5 by default.

In current lib it is hardcoded to 3 "HC.numberFormat(val.y, 3)" Line no 335 of indicators.js, can anyone help us on this? Or is there any way to configure?

pawelfus commented 7 years ago

Hi @lakshmikant4u

I think we never had valueDecimals for indicators, could you tell me which version of Indicators.js you refer to?

At this moment, you can write your own tooltip.formatter.

lakshmikant4u commented 7 years ago

Hi @pawelfus

Thanks for your quick response, looks like library used is customised. Let me try "tooltip.formatter", it would have been great if it was configurable rather than keeping it 3.

pawelfus commented 7 years ago

I agree with you, let's keep this ticket open then.

Thanks!

joelmm1 commented 6 years ago

How do I increase the SMA value decimal to 5?

pawelfus commented 6 years ago

Hi @joelmm1 - you need to write your own tooltip.formatter.

Note: this plugin is deprecated and we suggest to use official Highcharts Technical Indicators.