Compare commits
2 Commits
79802aa173
...
276ea8bdd5
| Author | SHA1 | Date | |
|---|---|---|---|
| 276ea8bdd5 | |||
| 3d6b500926 |
@ -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);
|
||||||
|
|||||||
@ -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">×</span>
|
<span class="legend-close" data-id="${ind.id}" title="Remove">×</span>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
// Bind legend events
|
// Bind legend events
|
||||||
|
|||||||
Reference in New Issue
Block a user