有没有办法在轻量级图表中为正确的价格比例调整内容?我在文档中没有找到任何相关信息。
我正在尝试显示两个数据系列,但它们的范围不同(数万与数十)
这是我的jsfiddle。我会很感激任何提示。 https://jsfiddle.net/05zx4e76/5/
var chart = LightweightCharts.createChart(tvchart, {
width: '600',
height: '300',
rightPriceScale: {
visible: true,
borderColor: 'rgba(197, 203, 206, 1)',
lockVisibleTimeRangeOnResize: true,
},
localization: {
locale: 'en-US',
},
leftPriceScale: {
visible: true,
borderColor: 'rgba(197, 203, 206, 1)',
lockVisibleTimeRangeOnResize: true,
},
grid: {
horzLines: {
color: '#363C4E',
},
vertLines: {
color: '#2B2B43',
},
},
crosshair: {
mode: LightweightCharts.CrosshairMode.Normal,
},
timeScale: {
borderColor: 'rgba(197, 203, 206, 1)',
},
handleScroll: {
vertTouchDrag: false,
},
layout: {
backgroundColor: '#2B2B43',
lineColor: '#2B2B43',
textColor: '#D9D9D9',
}
});
chart.applyOptions({
timeScale: {
rightOffset: 12,
barSpacing: 3,
fixLeftEdge: false,
rightBarStaysOnScroll: false,
borderVisible: false,
borderColor: '#fff000',
visible: true,
timeVisible: true,
secondsVisible: false }
}
);