Socket
Socket
Sign inDemoInstall

apexcharts

Package Overview
Dependencies
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apexcharts - npm Package Compare versions

Comparing version 1.3.11 to 1.3.12

tests/unit/core.spec.js

3

jest.config.js

@@ -143,3 +143,4 @@ // For a detailed explanation regarding each configuration property, visit:

testPathIgnorePatterns: [
"/node_modules/"
"/node_modules/",
"/tests/unit/data/"
],

@@ -146,0 +147,0 @@

{
"name": "apexcharts",
"description": "A JavaScript Chart Library",
"version": "1.3.11",
"version": "1.3.12",
"main": "dist/apexcharts.min.js",

@@ -6,0 +6,0 @@ "directories": {

@@ -25,2 +25,3 @@ import Bar from '../charts/Bar'

require('svg.resize.js')
/**

@@ -349,3 +350,3 @@ * ApexCharts Core Class responsible for major calculations and creating elements.

isMultiFormat = () => {
isMultiFormat () {
return this.isFormatXY() || this.isFormat2DArray()

@@ -355,3 +356,3 @@ }

// given format is [{x, y}, {x, y}]
isFormatXY = () => {
isFormatXY () {
const series = this.w.config.series.slice()

@@ -372,3 +373,3 @@

// given format is [[x, y], [x, y]]
isFormat2DArray = () => {
isFormat2DArray () {
const series = this.w.config.series.slice()

@@ -428,3 +429,3 @@

const isXString = typeof ser[i].data[j].x === 'string'
const isXDate = dt.isValidDate(ser[i].data[j].x.toString())
const isXDate = !!dt.isValidDate(ser[i].data[j].x.toString())

@@ -465,7 +466,7 @@ if (isXString || isXDate) {

parseDataAxisCharts (ser, series) {
parseDataAxisCharts (ser, series, ctx = this.ctx) {
const cnf = this.w.config
const gl = this.w.globals
const dt = new DateTime(this.ctx)
const dt = new DateTime(ctx)

@@ -528,2 +529,4 @@ for (let i = 0; i < series.length; i++) {

}
return this.w
}

@@ -542,2 +545,4 @@

}
return this.w
}

@@ -544,0 +549,0 @@

@@ -114,3 +114,3 @@ import Scatter from './../charts/Scatter'

plotDataLabelsText = (x, y, text, i, j, elToAppendTo, dataLabelsConfig) => {
plotDataLabelsText (x, y, text, i, j, elToAppendTo, dataLabelsConfig) {
let w = this.w

@@ -117,0 +117,0 @@ let graphics = new Graphics(this.ctx)

@@ -78,3 +78,3 @@ import Graphics from './Graphics'

getSeriesIndex = (opts) => {
getSeriesIndex (opts) {
const w = this.w

@@ -81,0 +81,0 @@

import Utils from './../utils/Utils'
require('svg.js')
require('svg.filter.js')

@@ -5,0 +3,0 @@ /**

/**
* ApexCharts Options for setting the initial configuration of ApexCharts.
* ApexCharts Options for setting the initial configuration of ApexCharts
**/

@@ -4,0 +4,0 @@

/*
** Generic functions which are not dependent on ApexCharts.
** Generic functions which are not dependent on ApexCharts
*/

@@ -259,5 +259,9 @@

static isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
static isSafari() {
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
}
static isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
static isFirefox() {
return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
}

@@ -264,0 +268,0 @@ static isIE () {

@@ -12,3 +12,3 @@ var path = require('path');

filename: 'apexcharts.min.js' ,
},
},
module: {

@@ -15,0 +15,0 @@ rules: [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc