Compare commits

..

2 Commits

2 changed files with 8 additions and 8 deletions

View File

@ -926,10 +926,10 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
}, paneIndex); }, paneIndex);
} else { } else {
series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, { series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, {
color: plotColor, color: plotColor,
lineWidth: plot.width || indicator.params._lineWidth || lineWidth, lineWidth: plot.width || indicator.params._lineWidth || lineWidth,
lineStyle: plotLineStyle, lineStyle: plotLineStyle,
title: plot.title || '', title: '',
priceLineVisible: false, priceLineVisible: false,
lastValueVisible: plot.lastValueVisible !== false lastValueVisible: plot.lastValueVisible !== false
}, paneIndex); }, paneIndex);

View File

@ -649,14 +649,14 @@ export function updateChartLegend() {
const firstColor = ind.params['_color_0'] || '#2962ff'; const firstColor = ind.params['_color_0'] || '#2962ff';
const dimmed = ind.visible === false; const dimmed = ind.visible === false;
return ` return `
<div class="legend-item ${dimmed ? 'legend-dimmed' : ''} ${ind.id === configuringId ? 'legend-selected' : ''}" <div class="legend-item ${dimmed ? 'legend-dimmed' : ''} ${ind.id === configuringId ? 'legend-selected' : ''}"
data-id="${ind.id}"> data-id="${ind.id}">
<span class="legend-dot" style="background: ${firstColor};"></span> <span class="legend-dot" style="background: ${firstColor};"></span>
<span class="legend-label">${label}</span> <span class="legend-label"></span>
<span class="legend-close" data-id="${ind.id}" title="Remove">&times;</span> <span class="legend-close" data-id="${ind.id}" title="Remove">&times;</span>
</div> </div>
`; `;
}).join(''); }).join('');
// Bind legend events // Bind legend events