Skip to content

Commit

Permalink
prevent markers hiding on the top and the bottom of the drawing area
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Oct 16, 2023
1 parent 1ae0087 commit 385ce76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/Markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Markers {
class:
alwaysDrawMarker || hasDiscreteMarkers
? ''
: 'apexcharts-series-markers'
: 'apexcharts-series-markers',
})

elPointsWrap.attr(
Expand Down Expand Up @@ -97,7 +97,7 @@ export default class Markers {
let opts = this.getMarkerConfig({
cssClass: PointClasses,
seriesIndex,
dataPointIndex
dataPointIndex,
})

if (w.config.series[i].data[dataPointIndex]) {
Expand All @@ -119,8 +119,8 @@ export default class Markers {
if (
p.x[q] < 0 ||
p.x[q] > w.globals.gridWidth ||
p.y[q] < 0 ||
p.y[q] > w.globals.gridHeight
p.y[q] < -w.globals.markers.largestSize ||
p.y[q] > w.globals.gridHeight + w.globals.markers.largestSize
) {
opts.pSize = 0
}
Expand Down Expand Up @@ -156,7 +156,7 @@ export default class Markers {
cssClass,
seriesIndex,
dataPointIndex = null,
finishRadius = null
finishRadius = null,
}) {
const w = this.w
let pStyle = this.getMarkerStyle(seriesIndex)
Expand Down Expand Up @@ -203,7 +203,7 @@ export default class Markers {
pointFillOpacity: Array.isArray(m.fillOpacity)
? m.fillOpacity[seriesIndex]
: m.fillOpacity,
seriesIndex
seriesIndex,
}
}

Expand Down Expand Up @@ -249,7 +249,7 @@ export default class Markers {

return {
pointStrokeColor,
pointFillColor
pointFillColor,
}
}
}

0 comments on commit 385ce76

Please sign in to comment.