diff --git a/apps/plotly_examples/package.json b/apps/plotly_examples/package.json index 144dae70a5..b855ac81ec 100644 --- a/apps/plotly_examples/package.json +++ b/apps/plotly_examples/package.json @@ -39,7 +39,7 @@ "jest-resolve": "^27.4.2", "jest-watch-typeahead": "^1.0.0", "mini-css-extract-plugin": "^2.4.5", - "plotly.js": "^2.35.3", + "plotly.js": "^3.2.0", "postcss": "^8.4.4", "postcss-flexbugs-fixes": "^5.0.2", "postcss-loader": "^6.2.1", diff --git a/apps/plotly_examples/src/data/data_001.json b/apps/plotly_examples/src/data/data_001.json index d9a053f062..c35d042614 100644 --- a/apps/plotly_examples/src/data/data_001.json +++ b/apps/plotly_examples/src/data/data_001.json @@ -1,48 +1,58 @@ { "data": [ { - "type": "scatter", - "name": "Product Category", - "x": [ - "2023-01-01", - "2023-02-01", - "2023-03-01", - "2023-04-01", - "2023-05-01", - "2023-06-01", - "2023-07-01", - "2023-08-01", - "2023-09-01", - "2023-10-01", - "2023-11-01", - "2023-12-01" - ], - "y": [ - 5000, - 5200, - 5400, - 5600, - 5800, - 6000, - 6200, - 6400, - 6600, - 6800, - 7000, - 7200 - ], - "fill": "tozeroy", - "mode": "lines" + "type": "indicator", + "mode": "gauge+number+delta", + "value": 5000, + "title": { + "text": "Monthly Sales" + }, + "delta": { + "reference": 4800 + }, + "gauge": { + "axis": { + "range": [ + 0, + 6000 + ] + }, + "steps": [ + { + "range": [ + 0, + 3000 + ], + "color": "lightgray" + }, + { + "range": [ + 3000, + 4800 + ], + "color": "gray" + }, + { + "range": [ + 4800, + 6000 + ], + "color": "green" + } + ], + "threshold": { + "line": { + "color": "red", + "width": 4 + }, + "thickness": 0.75, + "value": 4800 + } + } } ], "layout": { - "title": "Monthly Sales Volume Growth", - "xaxis": { - "title": "Month" - }, - "yaxis": { - "title": "Sales Volume" - } + "title": "Sales Performance Against Target" }, "id": 1 } \ No newline at end of file diff --git a/apps/plotly_examples/tests/test-matrix.ts b/apps/plotly_examples/tests/test-matrix.ts index d8bc6a0fa1..26652d8fc8 100644 --- a/apps/plotly_examples/tests/test-matrix.ts +++ b/apps/plotly_examples/tests/test-matrix.ts @@ -1,7 +1,7 @@ const startExampleTestIndex = 0; -export const totalChartExamplesCount = 987; -const startExampleTestIndexLocalization = 377; -const endExampleTestIndexLocalization = 569; +export const totalChartExamplesCount = 1; +const startExampleTestIndexLocalization = 0; +const endExampleTestIndexLocalization = 0; export const chartsListWithErrors = []; diff --git a/apps/plotly_examples/yarn.lock b/apps/plotly_examples/yarn.lock index 3647158c48..cd63f04b73 100644 --- a/apps/plotly_examples/yarn.lock +++ b/apps/plotly_examples/yarn.lock @@ -3260,6 +3260,11 @@ parse-rect "^1.2.0" pick-by-alias "^1.2.0" +"@plotly/regl@^2.1.2": + version "2.1.2" + resolved "https://registry.yarnpkg.com/@plotly/regl/-/regl-2.1.2.tgz#fd31e3e820ed8824d59a67ab5e766bb101b810b6" + integrity sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw== + "@pmmmwh/react-refresh-webpack-plugin@^0.5.3": version "0.5.17" resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.17.tgz#8c2f34ca8651df74895422046e11ce5a120e7930" @@ -4355,11 +4360,6 @@ ajv@^8.0.0, ajv@^8.6.0, ajv@^8.9.0: json-schema-traverse "^1.0.0" require-from-string "^2.0.2" -almost-equal@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/almost-equal/-/almost-equal-1.1.0.tgz#f851c631138757994276aa2efbe8dfa3066cccdd" - integrity sha512-0V/PkoculFl5+0Lp47JoxUcO0xSxhIBvm+BxHdD/OgXNmdRpRHCFnKVuUoWyS9EzQP+otSGv0m9Lb4yVkQBn2A== - ansi-escapes@^4.2.1, ansi-escapes@^4.3.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -5175,6 +5175,11 @@ color-name@^1.0.0, color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-name@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-2.0.2.tgz#85054825a23e6d6f81d3503f660c4c4a2a15f04f" + integrity sha512-9vEt7gE16EW7Eu7pvZnR0abW9z6ufzhXxGXZEVU9IqPdlsUiMwJeJfRtq0zePUmnbHGT9zajca7mX8zgoayo4A== + color-normalize@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/color-normalize/-/color-normalize-1.5.0.tgz#ee610af9acb15daf73e77a945a847b18e40772da" @@ -5206,14 +5211,20 @@ color-parse@^1.3.8, color-parse@^1.4.1, color-parse@^1.4.2: dependencies: color-name "^1.0.0" -color-rgba@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/color-rgba/-/color-rgba-2.1.1.tgz#4633b83817c7406c90b3d7bf4d1acfa48dde5c83" - integrity sha512-VaX97wsqrMwLSOR6H7rU1Doa2zyVdmShabKrPEIFywLlHoibgD3QW9Dw6fSqM4+H/LfjprDNAUUW31qEQcGzNw== +color-parse@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/color-parse/-/color-parse-2.0.2.tgz#37b46930424924060988edf25b24e6ffb4a1dc3f" + integrity sha512-eCtOz5w5ttWIUcaKLiktF+DxZO1R9KLNY/xhbV6CkhM7sR3GhVghmt6X6yOnzeaM24po+Z9/S1apbXMwA3Iepw== dependencies: - clamp "^1.0.1" - color-parse "^1.3.8" - color-space "^1.14.6" + color-name "^2.0.0" + +color-rgba@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/color-rgba/-/color-rgba-3.0.0.tgz#77090bdcdb2951c1735e20099ddd50401675375b" + integrity sha512-PPwZYkEY3M2THEHHV6Y95sGUie77S7X8v+h1r6LSAPF3/LL2xJ8duUXSrkic31Nzc4odPwHgUbiX/XuTYzQHQg== + dependencies: + color-parse "^2.0.0" + color-space "^2.0.0" color-rgba@^2.1.1, color-rgba@^2.2.0: version "2.4.0" @@ -5223,14 +5234,6 @@ color-rgba@^2.1.1, color-rgba@^2.2.0: color-parse "^1.4.2" color-space "^2.0.0" -color-space@^1.14.6: - version "1.16.0" - resolved "https://registry.yarnpkg.com/color-space/-/color-space-1.16.0.tgz#611781bca41cd8582a1466fd9e28a7d3d89772a2" - integrity sha512-A6WMiFzunQ8KEPFmj02OnnoUnqhmSaHaZ/0LVFcPTdlvm8+3aMJ5x1HRHy3bDHPkovkf4sS0f4wsVvwk71fKkg== - dependencies: - hsluv "^0.0.3" - mumath "^3.3.4" - color-space@^2.0.0: version "2.3.2" resolved "https://registry.yarnpkg.com/color-space/-/color-space-2.3.2.tgz#d8c72bab09ef26b98abebc58bc1586ce3073033d" @@ -5503,20 +5506,6 @@ css-loader@^6.5.1: postcss-value-parser "^4.2.0" semver "^7.5.4" -css-loader@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-7.1.2.tgz#64671541c6efe06b0e22e750503106bdd86880f8" - integrity sha512-6WvYYn7l/XEGN8Xu2vWFt9nVzrCn39vKyTEFf/ExEyoksJjjSZV/0/35XPlMbpnr6VGhZIUg5yJrL8tGfes/FA== - dependencies: - icss-utils "^5.1.0" - postcss "^8.4.33" - postcss-modules-extract-imports "^3.1.0" - postcss-modules-local-by-default "^4.0.5" - postcss-modules-scope "^3.2.0" - postcss-modules-values "^4.0.0" - postcss-value-parser "^4.2.0" - semver "^7.5.4" - css-minimizer-webpack-plugin@^3.2.0: version "3.4.1" resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz#ab78f781ced9181992fe7b6e4f3422e76429878f" @@ -7720,11 +7709,6 @@ hpack.js@^2.1.6: readable-stream "^2.0.1" wbuf "^1.1.0" -hsluv@^0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/hsluv/-/hsluv-0.0.3.tgz#829107dafb4a9f8b52a1809ed02e091eade6754c" - integrity sha512-08iL2VyCRbkQKBySkSh6m8zMUa3sADAxGVWs3Z1aPcUkTJeK0ETG4Fc27tEmQBGUAXZjIsXOZqBvacuVNSC/fQ== - html-encoding-sniffer@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" @@ -9245,7 +9229,7 @@ map-limit@0.0.1: dependencies: once "~1.3.0" -maplibre-gl@^4.5.2: +maplibre-gl@^4.7.1: version "4.7.1" resolved "https://registry.yarnpkg.com/maplibre-gl/-/maplibre-gl-4.7.1.tgz#06a524438ee2aafbe8bcd91002a4e01468ea5486" integrity sha512-lgL7XpIwsgICiL82ITplfS7IGwrB1OJIw/pCvprDp2dhmSSEBgmPzYRvwYYYvJGJD7fxUv1Tvpih4nZ6VrLuaA== @@ -9459,13 +9443,6 @@ multicast-dns@^7.2.5: dns-packet "^5.2.2" thunky "^1.0.2" -mumath@^3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/mumath/-/mumath-3.3.4.tgz#48d4a0f0fd8cad4e7b32096ee89b161a63d30bbf" - integrity sha512-VAFIOG6rsxoc7q/IaY3jdjmrsuX9f15KlRLYTHmixASBZkZEKC1IFqE2BC5CdhXmK6WLM1Re33z//AGmeRI6FA== - dependencies: - almost-equal "^1.1.0" - murmurhash-js@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/murmurhash-js/-/murmurhash-js-1.0.0.tgz#b06278e21fc6c37fa5313732b0412bcb6ae15f51" @@ -10036,15 +10013,16 @@ playwright@1.56.1: optionalDependencies: fsevents "2.3.2" -plotly.js@^2.35.3: - version "2.35.3" - resolved "https://registry.yarnpkg.com/plotly.js/-/plotly.js-2.35.3.tgz#6a7787d63b4d334948c281aa9c8df7fb941b425e" - integrity sha512-7RaC6FxmCUhpD6H4MpD+QLUu3hCn76I11rotRefrh3m1iDvWqGnVqVk9dSaKmRAhFD3vsNsYea0OxnR1rc2IzQ== +plotly.js@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/plotly.js/-/plotly.js-3.2.0.tgz#a669fdc37a7c7c0066ade1e39f029e37c9338527" + integrity sha512-VH4FRnWbO35rU3IEPrnZ4pxnjS5NbNz6Jk3Rp06jTIleYdAWCdyRrULSOqQB9UMm9XHRKaIKAZPYBOLqQ1svbA== dependencies: "@plotly/d3" "3.8.2" "@plotly/d3-sankey" "0.7.2" "@plotly/d3-sankey-circular" "0.33.1" "@plotly/mapbox-gl" "1.13.4" + "@plotly/regl" "^2.1.2" "@turf/area" "^7.1.0" "@turf/bbox" "^7.1.0" "@turf/centroid" "^7.1.0" @@ -10053,9 +10031,8 @@ plotly.js@^2.35.3: color-alpha "1.0.4" color-normalize "1.5.0" color-parse "2.0.0" - color-rgba "2.1.1" + color-rgba "3.0.0" country-regex "^1.1.0" - css-loader "^7.1.2" d3-force "^1.2.1" d3-format "^1.4.5" d3-geo "^1.12.1" @@ -10070,7 +10047,7 @@ plotly.js@^2.35.3: has-hover "^1.0.1" has-passive-events "^1.0.0" is-mobile "^4.0.0" - maplibre-gl "^4.5.2" + maplibre-gl "^4.7.1" mouse-change "^1.4.0" mouse-event-offset "^3.0.2" mouse-wheel "^1.2.0" @@ -10079,20 +10056,18 @@ plotly.js@^2.35.3: point-in-polygon "^1.1.0" polybooljs "^1.2.2" probe-image-size "^7.2.3" - regl "npm:@plotly/regl@^2.1.2" regl-error2d "^2.0.12" regl-line2d "^3.1.3" regl-scatter2d "^3.3.1" regl-splom "^1.0.14" strongly-connected-components "^1.0.1" - style-loader "^4.0.0" superscript-text "^1.0.0" svg-path-sdf "^1.1.3" tinycolor2 "^1.4.2" to-px "1.0.1" topojson-client "^3.1.0" webgl-context "^2.2.0" - world-calendars "^1.0.3" + world-calendars "^1.0.4" point-in-polygon@^1.1.0: version "1.1.0" @@ -11130,11 +11105,6 @@ regl@^2.0.0: resolved "https://registry.yarnpkg.com/regl/-/regl-2.1.1.tgz#fb3eecbc684031ec6172f68aaab2cbe9c3aa3148" integrity sha512-+IOGrxl3FZ8ZM9ixCWQZzFRiRn7Rzn9bu3iFHwg/yz4tlOUQgbO4PHLgG+1ZT60zcIV8tief6Qrmyl8qcoJP0g== -"regl@npm:@plotly/regl@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@plotly/regl/-/regl-2.1.2.tgz#fd31e3e820ed8824d59a67ab5e766bb101b810b6" - integrity sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw== - relateurl@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" @@ -11807,7 +11777,16 @@ string-split-by@^1.0.0: dependencies: parenthesis "^3.1.5" -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.1.0, string-width@^4.2.0: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -11921,7 +11900,14 @@ stringify-object@^3.3.0: is-obj "^1.0.1" is-regexp "^1.0.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -11970,11 +11956,6 @@ style-loader@^3.3.1: resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7" integrity sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w== -style-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-4.0.0.tgz#0ea96e468f43c69600011e0589cb05c44f3b17a5" - integrity sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA== - stylehacks@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9" @@ -13142,14 +13123,23 @@ workbox-window@6.6.1: "@types/trusted-types" "^2.0.2" workbox-core "6.6.1" -world-calendars@^1.0.3: +world-calendars@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/world-calendars/-/world-calendars-1.0.4.tgz#2a12bcbd796b6c99aef2e52f281229faad8fa96c" integrity sha512-VGRnLJS+xJmGDPodgJRnGIDwGu0s+Cr9V2HB3EzlDZ5n0qb8h5SJtGUEkjrphZYAglEiXZ6kiXdmk0H/h/uu/w== dependencies: object-assign "^4.1.0" -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==