apexcharts
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "apexcharts", | ||
"description": "A JavaScript Chart Library", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"main": "dist/apexcharts.min.js", | ||
@@ -6,0 +6,0 @@ "directories": { |
@@ -398,6 +398,6 @@ import Annotations from './modules/Annotations' | ||
// while updateing pie/donut series, user completely changed the series length too | ||
if (!w.globals.axisCharts && newSeries.length !== w.globals.series.length) { | ||
w.globals.dataChanged = false | ||
animate = false | ||
} | ||
// if (!w.globals.axisCharts && newSeries.length !== w.globals.series.length) { | ||
// w.globals.dataChanged = false | ||
// animate = false | ||
// } | ||
@@ -404,0 +404,0 @@ if (animate) { |
@@ -348,3 +348,2 @@ import Fill from '../modules/Fill' | ||
} | ||
if (opts.i === w.config.series.length - 1) { | ||
@@ -377,2 +376,8 @@ // some adjustments for the last overlapping paths | ||
if (isNaN(fromStartAngle) || isNaN(prevAngle)) { | ||
fromStartAngle = toStartAngle | ||
prevAngle = angle | ||
opts.dur = 0 | ||
} | ||
let currAngle = angle | ||
@@ -392,3 +397,4 @@ let startAngle = toStartAngle | ||
if (params.animateStartingPos) { | ||
startAngle = (fromStartAngle - currAngle) + (toStartAngle - (fromStartAngle - currAngle)) * pos | ||
currAngle = (prevAngle) + (angle - (prevAngle)) * pos | ||
startAngle = (fromStartAngle - prevAngle) + (toStartAngle - (fromStartAngle - prevAngle)) * pos | ||
} | ||
@@ -395,0 +401,0 @@ |
@@ -366,2 +366,8 @@ import Dimensions from './Dimensions' | ||
if (w.config.legend.position === 'right' || w.config.legend.position === 'left') { | ||
if (y < w.config.legend.markers.size) y = w.config.legend.markers.size | ||
} | ||
console.log(y) | ||
elLegendWrap.setAttribute('transform', `translate(${x}, ${y})`) | ||
@@ -368,0 +374,0 @@ } |
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
939210
16711