问题标签 [lightweight-charts]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
13 浏览

javascript - 轻量图表添加自定义蜡烛系列标签

我想创建像底部图像一样的蜡烛系列价格标签。

我想在价格标签中添加下一根蜡烛的时间。

在此处输入图像描述

我用黄线表明了我这个问题的目的

我怎样才能做到这一点?

0 投票
1 回答
21 浏览

javascript - 处理放大轻量级图表

我希望在创建图表时,图表自动缩放到 20 或 10 个最后一根蜡烛。 在此处输入图像描述

创建图表时的默认缩放。

在此处输入图像描述

这张照片描述了我想要的。

这个问题有解决方案吗?

谢谢。

0 投票
0 回答
27 浏览

javascript - Lightweight TradingView Chart is not showing CrossHair on ReactApp. Its working in normal html page. Any idea what can be wrong?

I implemented the charts in react app but I am not able to see the Crosshair horizontal and vertical lines on hovering the chart. I am using AreaSeries with below setting

Can someone please tell me what I am missing here? When i tried this implementation in html page then it works fine. Not able to understand what might be the reason behind cross hair not working in reactapp.

0 投票
0 回答
32 浏览

javascript - TradingView 轻量级图表 - 修复左右价格刻度的宽度

有没有办法将右侧(和左侧)价格刻度的宽度固定为一定数量的像素?比如说,右边的价格比例为 50 像素,左边的价格比例为 70 像素?

对于reprex,请参阅https://jsfiddle.net/TradingView/cnbamtuh/,从下面的正确价格比例代码获取,以及https://jsfiddle.net/TradingView/6s01gdje/,它显示左侧价格比例. 我在下面代码的注释 (//) 中添加了一个不起作用的选项,但拥有它会很有用。有什么办法可以完成这种行为吗?

谢谢