fix
This commit is contained in:
File diff suppressed because one or more lines are too long
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='lightweight_charts',
|
name='lightweight_charts',
|
||||||
version='2.2.25',
|
version='2.2.26',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
@ -213,7 +213,7 @@ export class Legend {
|
|||||||
let row = document.createElement('div')
|
let row = document.createElement('div')
|
||||||
row.style.display = 'flex'
|
row.style.display = 'flex'
|
||||||
row.style.alignItems = 'center'
|
row.style.alignItems = 'center'
|
||||||
row.style.padding = '1px 0'
|
row.style.padding = '0px 0'
|
||||||
row.style.color = '#D1D4DC'
|
row.style.color = '#D1D4DC'
|
||||||
row.style.width = '100%'
|
row.style.width = '100%'
|
||||||
row.style.pointerEvents = 'all'
|
row.style.pointerEvents = 'all'
|
||||||
@ -285,6 +285,10 @@ export class Legend {
|
|||||||
if (!param.time) {
|
if (!param.time) {
|
||||||
this.candle.style.color = 'transparent'
|
this.candle.style.color = 'transparent'
|
||||||
this.candle.innerHTML = this.candle.innerHTML.replace(options['upColor'], '').replace(options['downColor'], '')
|
this.candle.innerHTML = this.candle.innerHTML.replace(options['upColor'], '').replace(options['downColor'], '')
|
||||||
|
// Add this to clear line indicators:
|
||||||
|
this._lines.forEach(e => {
|
||||||
|
e.div.innerHTML = `<span style="color: ${e.solid};">▨ ${e.name} : --</span>`
|
||||||
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +308,7 @@ export class Legend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.candle.style.color = ''
|
this.candle.style.color = ''
|
||||||
let str = '<span style="line-height: 1.4;">'
|
let str = '<span style="line-height: 1.0;">'
|
||||||
if (data) {
|
if (data) {
|
||||||
if (this.ohlcEnabled) {
|
if (this.ohlcEnabled) {
|
||||||
str += `O ${this.legendItemFormat(data.open, this.handler.precision)} `
|
str += `O ${this.legendItemFormat(data.open, this.handler.precision)} `
|
||||||
|
|||||||
Reference in New Issue
Block a user