[英]How to set price scale on Trading View library?
I have implement chart view with Trading View library - Charting & Trading Platform我已经使用交易视图库实现图表视图 - 图表和交易平台
I want to scaling y axis price with decimal.我想用小数缩放 y 轴价格。 I have tried priceFormatter()
, and returns the object with format function to format the prices.我尝试priceFormatter()
,并返回 object 格式为 function 以格式化价格。 But, I can't find function like setPriceFormatter()
但是,我找不到像setPriceFormatter()
这样的 function
widget.chart().priceFormatter();
and this the return object这是返回 object
{
type: "price"
_fractional: false
_fractionalLength: 0
_minMove: 1
_minMove2: undefined
_priceScale: 1
}
By default with user click, it can scale the price value默认情况下,用户点击,它可以缩放价格值
found it找到了
widget.onChartReady(function () {
widget.mainSeriesPriceFormatter()._priceScale = 10000;
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.