apexcharts
Advanced tools
Comparing version 3.37.2 to 3.37.3
{ | ||
"name": "apexcharts", | ||
"version": "3.37.2", | ||
"version": "3.37.3", | ||
"description": "A JavaScript Chart Library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -71,11 +71,2 @@ import Filters from './Filters' | ||
for (let q = 0; q < p.x.length; q++) { | ||
if ( | ||
p.x[q] < 0 || | ||
p.x[q] > w.globals.gridWidth || | ||
p.y[q] < 0 || | ||
p.y[q] > w.globals.gridHeight | ||
) { | ||
continue | ||
} | ||
let dataPointIndex = j | ||
@@ -82,0 +73,0 @@ |
@@ -97,5 +97,4 @@ import Formatters from '../Formatters' | ||
const getValBySeriesIndex = (index) => { | ||
let _val = '' | ||
if (w.globals.isRangeData) { | ||
_val += | ||
return ( | ||
f.yLbFormatter(w.globals.seriesRangeStart?.[index]?.[j], { | ||
@@ -106,5 +105,13 @@ series: w.globals.seriesRangeStart, | ||
w | ||
}) + ' - ' | ||
}) + | ||
' - ' + | ||
f.yLbFormatter(w.globals.seriesRangeEnd?.[index]?.[j], { | ||
series: w.globals.seriesRangeEnd, | ||
seriesIndex: index, | ||
dataPointIndex: j, | ||
w | ||
}) | ||
) | ||
} | ||
_val += f.yLbFormatter(w.globals.series[index][j], { | ||
return f.yLbFormatter(w.globals.series[index][j], { | ||
series: w.globals.series, | ||
@@ -115,4 +122,2 @@ seriesIndex: index, | ||
}) | ||
return _val | ||
} | ||
@@ -119,0 +124,0 @@ if (shared) { |
@@ -195,7 +195,11 @@ import Graphics from '../Graphics' | ||
const seriesBound = elGrid.getBoundingClientRect() | ||
y = | ||
ttCtx.e.clientY + | ||
w.globals.translateY - | ||
seriesBound.top - | ||
tooltipRect.ttHeight / 2 | ||
x = ttCtx.e.clientX - seriesBound.left | ||
if (x > w.globals.gridWidth / 2) { | ||
x = x - ttCtx.tooltipRect.ttWidth | ||
} | ||
y = ttCtx.e.clientY + w.globals.translateY - seriesBound.top | ||
if (y > w.globals.gridHeight / 2) { | ||
y = y - ttCtx.tooltipRect.ttHeight | ||
} | ||
} else { | ||
@@ -352,4 +356,3 @@ if (!w.globals.isBarHorizontal) { | ||
if (!ttCtx.fixedTooltip) { | ||
let tcy = cy || w.globals.gridHeight | ||
this.moveTooltip(cx, tcy, hoverSize) | ||
this.moveTooltip(cx, cy || w.globals.gridHeight, hoverSize) | ||
} | ||
@@ -378,3 +381,3 @@ } | ||
) | ||
if (!jBar && typeof capturedSeries == 'number') { | ||
if (!jBar && typeof capturedSeries === 'number') { | ||
// Try with captured series index | ||
@@ -386,3 +389,3 @@ jBar = w.globals.dom.baseEl.querySelector( | ||
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j}']` | ||
); | ||
) | ||
} | ||
@@ -397,5 +400,6 @@ | ||
const isBoxOrCandle = jBar && ( | ||
jBar.classList.contains('apexcharts-candlestick-area') || | ||
jBar.classList.contains('apexcharts-boxPlot-area')) | ||
const isBoxOrCandle = | ||
jBar && | ||
(jBar.classList.contains('apexcharts-candlestick-area') || | ||
jBar.classList.contains('apexcharts-boxPlot-area')) | ||
if (w.globals.isXNumeric) { | ||
@@ -440,6 +444,5 @@ if (jBar && !isBoxOrCandle) { | ||
if (!ttCtx.fixedTooltip) { | ||
let tcy = bcy || w.globals.gridHeight | ||
this.moveTooltip(bcx, tcy) | ||
this.moveTooltip(bcx, bcy || w.globals.gridHeight) | ||
} | ||
} | ||
} |
@@ -687,3 +687,5 @@ import Labels from './Labels' | ||
if (this.tooltipUtil.isXoverlap(j) || w.globals.isBarHorizontal) { | ||
const firstVisibleSeries = w.globals.series.findIndex((s,i) => !w.globals.collapsedSeriesIndices.includes(i)) | ||
const firstVisibleSeries = w.globals.series.findIndex( | ||
(s, i) => !w.globals.collapsedSeriesIndices.includes(i) | ||
) | ||
this.create(e, this, firstVisibleSeries, j, opt.ttItems) | ||
@@ -716,3 +718,5 @@ } | ||
if (this.tooltipUtil.isXoverlap(j)) { | ||
const firstVisibleSeries = w.globals.series.findIndex((s,i) => !w.globals.collapsedSeriesIndices.includes(i)); | ||
const firstVisibleSeries = w.globals.series.findIndex( | ||
(s, i) => !w.globals.collapsedSeriesIndices.includes(i) | ||
) | ||
this.create(e, this, firstVisibleSeries, j, opt.ttItems) | ||
@@ -866,5 +870,3 @@ } | ||
} | ||
} | ||
else if (this.tooltipUtil.hasBars()) { | ||
} else if (this.tooltipUtil.hasBars()) { | ||
this.barSeriesHeight = this.tooltipUtil.getBarsHeight(bars) | ||
@@ -871,0 +873,0 @@ if (this.barSeriesHeight > 0) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4291036
69345