diff --git a/package-lock.json b/package-lock.json index 28b37e690..fbf4525c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,8 +19,7 @@ "bignumber.js": "^9.1.2", "cheerio": "^1.0.0-rc.12", "cookie": "^0.5.0", - "d3-array": "^3.2.3", - "d3-scale": "^4.0.2", + "d3-time": "^3.1.0", "date-fns": "^2.29.3", "dd-trace": "^4.15.0", "devalue": "^4.3.2", @@ -43,6 +42,7 @@ "@testing-library/jest-dom": "^6.1.2", "@testing-library/svelte": "^4.0.3", "@testing-library/user-event": "^14.4.3", + "@types/d3-time": "^3.0.2", "@types/plotly.js": "^2.12.21", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", @@ -2851,6 +2851,12 @@ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.1.tgz", "integrity": "sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==" }, + "node_modules/@types/d3-time": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.2.tgz", + "integrity": "sha512-kbdRXTmUgNfw5OTE3KZnFQn6XdIc4QGroN5UixgdrXATmYsdlPQS6pEut9tVlIojtzuFD4txs/L+Rq41AHtLpg==", + "dev": true + }, "node_modules/@types/debug": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", @@ -4987,48 +4993,6 @@ "node": ">=12" } }, - "node_modules/d3-color": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", - "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-format": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", - "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-interpolate": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", - "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", - "dependencies": { - "d3-color": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-scale": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", - "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", - "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/d3-time": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", @@ -5040,17 +5004,6 @@ "node": ">=12" } }, - "node_modules/d3-time-format": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", - "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", - "dependencies": { - "d3-time": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/data-urls": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz", diff --git a/package.json b/package.json index 72ed5ecdf..f6ffe751f 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "@testing-library/jest-dom": "^6.1.2", "@testing-library/svelte": "^4.0.3", "@testing-library/user-event": "^14.4.3", + "@types/d3-time": "^3.0.2", "@types/plotly.js": "^2.12.21", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", @@ -61,8 +62,7 @@ "bignumber.js": "^9.1.2", "cheerio": "^1.0.0-rc.12", "cookie": "^0.5.0", - "d3-array": "^3.2.3", - "d3-scale": "^4.0.2", + "d3-time": "^3.1.0", "date-fns": "^2.29.3", "dd-trace": "^4.15.0", "devalue": "^4.3.2", diff --git a/src/lib/chart/ChartIQ.svelte b/src/lib/chart/ChartIQ.svelte index 19ed8218d..8c241bb7f 100644 --- a/src/lib/chart/ChartIQ.svelte +++ b/src/lib/chart/ChartIQ.svelte @@ -59,6 +59,7 @@ Dynamically ChartIQ modules (if available) and render chart element.