apexcharts
Advanced tools
Comparing version 3.44.1 to 3.44.2
{ | ||
"name": "apexcharts", | ||
"version": "3.44.1", | ||
"version": "3.44.2", | ||
"description": "A JavaScript Chart Library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -108,4 +108,7 @@ import CoreUtils from '../../../modules/CoreUtils' | ||
let stackSeries = | ||
w.config.chart.stacked && | ||
(!w.config.chart.stackOnlyBar || series?.[i]?.type === 'bar') | ||
(w.config.chart.stacked && !w.globals.comboCharts) || | ||
(w.config.chart.stacked && | ||
w.globals.comboCharts && | ||
(!this.w.config.chart.stackOnlyBar || | ||
this.w.config.series[i]?.type === 'bar')) | ||
@@ -112,0 +115,0 @@ if (typeof series[i]?.[0] !== 'undefined') { |
@@ -514,5 +514,7 @@ import CoreUtils from '../modules/CoreUtils' | ||
let stackSeries = | ||
w.config.chart.stacked && | ||
(!this.w.config.chart.stackOnlyBar || | ||
this.w.config.series[realIndex]?.type === 'bar') | ||
(w.config.chart.stacked && !w.globals.comboCharts) || | ||
(w.config.chart.stacked && | ||
w.globals.comboCharts && | ||
(!this.w.config.chart.stackOnlyBar || | ||
this.w.config.series[realIndex]?.type === 'bar')) | ||
@@ -519,0 +521,0 @@ for (let j = 0; j < iterations; j++) { |
@@ -457,10 +457,3 @@ import CoreUtils from './CoreUtils' | ||
gl.isRangeData = true | ||
if (gl.isComboCharts) { | ||
if (ser[i].type === 'rangeBar' || ser[i].type === 'rangeArea') { | ||
this.handleRangeData(ser, i) | ||
} | ||
} else if ( | ||
cnf.chart.type === 'rangeBar' || | ||
cnf.chart.type === 'rangeArea' | ||
) { | ||
if (cnf.chart.type === 'rangeBar' || cnf.chart.type === 'rangeArea') { | ||
this.handleRangeData(ser, i) | ||
@@ -467,0 +460,0 @@ } |
@@ -348,3 +348,3 @@ import Data from '../modules/Data' | ||
const handleUnequalDatetimeSeries = () => { | ||
const handleUnequalXValues = () => { | ||
const categories = new Set() | ||
@@ -381,3 +381,3 @@ const data = {} | ||
rows.push([ | ||
isTimeStamp(cat) | ||
isTimeStamp(cat) && w.config.xaxis.type === 'datetime' | ||
? w.config.chart.toolbar.export.csv.dateFormatter(cat) | ||
@@ -429,7 +429,6 @@ : Utils.isNumber(cat) | ||
w.globals.axisCharts && | ||
w.config.xaxis.type === 'datetime' && | ||
!w.config.xaxis.categories.length && | ||
!w.config.labels.length | ||
) { | ||
handleUnequalDatetimeSeries() | ||
handleUnequalXValues() | ||
} else { | ||
@@ -436,0 +435,0 @@ series.map((s, sI) => { |
@@ -557,6 +557,9 @@ import Utils from '../utils/Utils' | ||
} | ||
let stackSeries = | ||
!this.w.config.chart.stackOnlyBar || | ||
gl.series?.[i]?.type === 'bar' || | ||
this.w.config.chart.type === 'bar' | ||
(this.w.config.chart.stacked && !gl.comboCharts) || | ||
(this.w.config.chart.stacked && | ||
gl.comboCharts && | ||
(!this.w.config.chart.stackOnlyBar || | ||
this.w.config.series?.[i]?.type === 'bar')) | ||
@@ -563,0 +566,0 @@ if (stackSeries) { |
@@ -186,15 +186,2 @@ import Graphics from './Graphics' | ||
if ( | ||
!this.w.globals.allSeriesHasEqualX && | ||
!( | ||
this.w.globals.axisCharts && | ||
this.w.config.xaxis.type === 'datetime' && | ||
!this.w.config.xaxis.categories.length && | ||
!this.w.config.labels.length | ||
) | ||
) { | ||
// if it is a multi series, and all series have variable x values, export CSV won't work | ||
// unless it is a simple datetime chart | ||
menuItems.splice(2, 1) | ||
} | ||
for (let i = 0; i < menuItems.length; i++) { | ||
@@ -201,0 +188,0 @@ this.elMenuItems.push(document.createElement('div')) |
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
4436100
71535