Legend hotfix
This commit is contained in:
@ -447,6 +447,7 @@ class Line(SeriesCommon):
|
||||
self.color = color
|
||||
self.run_script(f'''
|
||||
{self.id} = {{
|
||||
type: "line",
|
||||
series: {chart.id}.chart.addLineSeries({{
|
||||
color: '{color}',
|
||||
lineStyle: {line_style(style)},
|
||||
@ -504,6 +505,7 @@ class Histogram(SeriesCommon):
|
||||
self.color = color
|
||||
self.run_script(f'''
|
||||
{self.id} = {{
|
||||
type: "histogram",
|
||||
series: {chart.id}.chart.addHistogramSeries({{
|
||||
color: '{color}',
|
||||
lastValueVisible: {jbool(price_label)},
|
||||
|
||||
@ -241,7 +241,7 @@ if (!window.Chart) {
|
||||
if (!param.seriesData.get(line.line.series)) return
|
||||
let price = param.seriesData.get(line.line.series).value
|
||||
|
||||
if (line.line.series._series._seriesType === 'Histogram') {
|
||||
if (line.line.type === 'histogram') {
|
||||
price = shorthandFormat(price)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user