prographs 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/README.md +6 -4
- package/dist/AutoGraph-PDPEAIXL.cjs +145 -0
- package/dist/GraphType.js +19 -0
- package/dist/autograph/chartIndex.js +521 -0
- package/dist/autograph/chartModules.js +2 -1
- package/dist/autograph/index.cjs +98 -93
- package/dist/catalog-DI4XZ46L.cjs +142 -0
- package/dist/catalog.js +2 -1
- package/dist/charts/biologycharts/BiologySamples.js +59 -0
- package/dist/charts/biologycharts/PunnettSquare.js +342 -0
- package/dist/charts/biologycharts/biologyEnums.js +22 -1
- package/dist/charts/biologycharts/index.js +5 -3
- package/dist/charts/doecharts/DoeSamples.js +78 -0
- package/dist/charts/doecharts/SipocDiagram.js +453 -0
- package/dist/charts/doecharts/index.js +4 -2
- package/dist/charts/fieldcharts/SpeciesAccumulationCurve.js +350 -0
- package/dist/charts/fieldcharts/fieldEnums.js +8 -1
- package/dist/charts/fieldcharts/index.js +5 -3
- package/dist/charts/signals/AntennaPatternChart.js +492 -0
- package/dist/charts/signals/SignalSamples.js +17 -0
- package/dist/charts/signals/index.js +5 -3
- package/dist/charts/softwarediagrams/ComponentDiagram.js +504 -0
- package/dist/charts/softwarediagrams/DeploymentDiagram.js +419 -0
- package/dist/charts/softwarediagrams/SoftwareSamples.js +283 -1
- package/dist/charts/softwarediagrams/index.js +7 -3
- package/dist/charts/softwarediagrams/softwareEnums.js +45 -1
- package/dist/charts/sportscharts/PowerDurationCurve.js +301 -0
- package/dist/charts/sportscharts/SportsSamples.js +102 -0
- package/dist/charts/sportscharts/TrainingLoadChart.js +325 -0
- package/dist/charts/sportscharts/index.js +6 -2
- package/dist/charts/strategycharts/BassDiffusionChart.js +362 -0
- package/dist/charts/strategycharts/BassModel.js +96 -0
- package/dist/charts/strategycharts/BurnRunwayChart.js +284 -0
- package/dist/charts/strategycharts/CapTableChart.js +366 -0
- package/dist/charts/strategycharts/KanbanBoard.js +324 -0
- package/dist/charts/strategycharts/OkrTree.js +339 -0
- package/dist/charts/strategycharts/StrategyPane.js +27 -0
- package/dist/charts/strategycharts/StrategySamples.js +251 -0
- package/dist/charts/strategycharts/index.js +15 -3
- package/dist/charts/threefields/BsfcMap3DChart.js +231 -0
- package/dist/charts/threefields/CompressorMap3DChart.js +217 -0
- package/dist/charts/threefields/FieldGrid.js +50 -0
- package/dist/charts/threefields/LossLandscape3DChart.js +201 -0
- package/dist/charts/threefields/MapSheet.js +77 -0
- package/dist/charts/threefields/TerrainRoute3DChart.js +201 -0
- package/dist/charts/threefields/TerrainRouteMath.js +40 -0
- package/dist/charts/threefields/ThreeFieldBase.js +117 -0
- package/dist/charts/threefields/ThreeFieldsSamples.js +80 -0
- package/dist/charts/threefields/WaferMap3DChart.js +218 -0
- package/dist/charts/threefields/index.js +19 -0
- package/dist/charts/threesurfaces/index.js +2 -2
- package/dist/charts/tradingcharts/KeltnerChannelChart.js +171 -0
- package/dist/charts/tradingcharts/TradingMath.js +20 -0
- package/dist/charts/tradingcharts/index.js +4 -2
- package/dist/{chunk-ZL6XDXMK.cjs → chunk-26PSLEP4.cjs} +8 -8
- package/dist/{chunk-W3US6EFP.cjs → chunk-2BO5DZUP.cjs} +12 -12
- package/dist/{chunk-5DP7OUSE.cjs → chunk-2GG5YYSC.cjs} +6 -6
- package/dist/{chunk-7FG4JSVO.cjs → chunk-2GL2VNJU.cjs} +253 -33
- package/dist/{chunk-LCWMRCLF.cjs → chunk-2PYOI7OY.cjs} +21 -21
- package/dist/{chunk-JFWJAEBD.cjs → chunk-3U4MCSKI.cjs} +4 -4
- package/dist/{chunk-CUPLHZRR.cjs → chunk-3ZMM3FSK.cjs} +4 -4
- package/dist/{chunk-L2AV62DP.cjs → chunk-4767WQJ7.cjs} +6 -6
- package/dist/{chunk-DA2EYIIP.cjs → chunk-4E7FSSBF.cjs} +1210 -168
- package/dist/{chunk-VS5LQEZB.cjs → chunk-526STI2S.cjs} +5 -5
- package/dist/{chunk-RXIMEK6C.cjs → chunk-55767YPI.cjs} +20 -20
- package/dist/{chunk-JXLSKIUV.cjs → chunk-5FBQOMMT.cjs} +26 -26
- package/dist/{chunk-27PZV5BR.cjs → chunk-5N4Z7MTS.cjs} +4 -4
- package/dist/{chunk-KEWCUIQA.cjs → chunk-5WEV6YWA.cjs} +22 -22
- package/dist/chunk-5XOVVC5X.cjs +3281 -0
- package/dist/{chunk-HK5J7Q2W.cjs → chunk-6HLXVWXU.cjs} +9 -9
- package/dist/{chunk-7JG47RW4.cjs → chunk-6LQT4WJ5.cjs} +25 -25
- package/dist/{chunk-OCVTI6X4.cjs → chunk-6YTWOUFD.cjs} +329 -36
- package/dist/{chunk-W7IQCAVN.cjs → chunk-7F6W6HKL.cjs} +11 -11
- package/dist/{chunk-F2DCJXDM.cjs → chunk-7L6KYU5A.cjs} +21 -21
- package/dist/{chunk-GTGR6LPR.cjs → chunk-A4GIN4FE.cjs} +17 -17
- package/dist/{chunk-B2CETSR6.cjs → chunk-A4US7SA7.cjs} +5 -5
- package/dist/{chunk-3DIF2YYW.cjs → chunk-AOXPBLPW.cjs} +10 -10
- package/dist/{chunk-7TTR4UF5.cjs → chunk-ATI45Z4M.cjs} +2 -2
- package/dist/{chunk-5BFCIX2V.cjs → chunk-CPPMO4IQ.cjs} +434 -148
- package/dist/{chunk-AYZZQ6AC.cjs → chunk-CZ5KGF6Q.cjs} +9 -9
- package/dist/{chunk-7THJ3ZBK.cjs → chunk-D4I35MCE.cjs} +2 -2
- package/dist/{chunk-MCPPFRLN.cjs → chunk-DCGAAN3Z.cjs} +2 -2
- package/dist/{chunk-VABL6CVX.cjs → chunk-DEY36N37.cjs} +21 -21
- package/dist/{chunk-RNCKGJCC.cjs → chunk-DXHXD3DK.cjs} +3 -3
- package/dist/{chunk-A56ZGMVZ.cjs → chunk-E7B45DBZ.cjs} +11 -11
- package/dist/{chunk-DOR6L4MT.cjs → chunk-EJC6EAC5.cjs} +18 -18
- package/dist/{chunk-UPGNM7MA.cjs → chunk-EULJOOMA.cjs} +11 -11
- package/dist/{chunk-G4AZL4GO.cjs → chunk-EYM6LEIF.cjs} +474 -70
- package/dist/{chunk-NJ4X6XGV.cjs → chunk-EZTYX2GH.cjs} +5 -5
- package/dist/chunk-FDD4UP73.cjs +521 -0
- package/dist/{chunk-WJ3VH2Q4.cjs → chunk-GEAIGM3J.cjs} +110 -615
- package/dist/{chunk-P3SBHF43.cjs → chunk-GRUYVXTS.cjs} +2 -2
- package/dist/{chunk-NX4Z5LMS.cjs → chunk-H3SZXND5.cjs} +5 -5
- package/dist/{chunk-EE4S4TOE.cjs → chunk-HS45TOFJ.cjs} +21 -21
- package/dist/chunk-INGOG6OV.cjs +899 -0
- package/dist/{chunk-UDKA6DGT.cjs → chunk-J3CDXZHF.cjs} +4 -4
- package/dist/{chunk-YO6G7TKI.cjs → chunk-JAU5ADEU.cjs} +11 -11
- package/dist/{chunk-22LBK4GA.cjs → chunk-JQEBSHX3.cjs} +4 -4
- package/dist/{chunk-RXX3U7VQ.cjs → chunk-KLXGLMFU.cjs} +10 -10
- package/dist/chunk-KVOX36J3.cjs +327 -0
- package/dist/chunk-L6BGNHFL.cjs +139 -0
- package/dist/{chunk-GMER35L3.cjs → chunk-L7TB7PU5.cjs} +20 -20
- package/dist/{chunk-AFXYNBL2.cjs → chunk-LBTRYEM2.cjs} +4 -4
- package/dist/{chunk-WYYCKIOD.cjs → chunk-LLULNJSP.cjs} +11 -11
- package/dist/{chunk-J27XOSLP.cjs → chunk-LSO46AFV.cjs} +8 -8
- package/dist/{chunk-5XJO45ES.cjs → chunk-LZ2KJ7ZX.cjs} +11 -11
- package/dist/chunk-M4IQ5LIZ.cjs +422 -0
- package/dist/{chunk-Y2KIUKJF.cjs → chunk-MPDHDKYZ.cjs} +11 -11
- package/dist/{chunk-4EMPKRZU.cjs → chunk-MRQ42ZJE.cjs} +3 -3
- package/dist/{chunk-EU5D2MF4.cjs → chunk-MYV4KZWP.cjs} +9 -9
- package/dist/{chunk-XD7KN4UN.cjs → chunk-MZXVLC24.cjs} +6 -6
- package/dist/{chunk-PPSONARU.cjs → chunk-NLBVDFIR.cjs} +41 -2
- package/dist/{chunk-L3PEGMGM.cjs → chunk-NY3TBZY4.cjs} +33 -33
- package/dist/{chunk-6YNYXXB6.cjs → chunk-OGVVSFAR.cjs} +3 -3
- package/dist/{chunk-MLV7QLB6.cjs → chunk-OMTQIQMN.cjs} +6 -6
- package/dist/{chunk-BEEOSNK7.cjs → chunk-PEJJ6TXJ.cjs} +15 -144
- package/dist/{chunk-SOKOWUF5.cjs → chunk-PPGWHIU7.cjs} +2 -2
- package/dist/{chunk-IELWOM2J.cjs → chunk-PPO6SDAN.cjs} +6 -6
- package/dist/{chunk-6JTZZCSL.cjs → chunk-PUMKX5F2.cjs} +3 -3
- package/dist/{chunk-RFOXFY2U.cjs → chunk-PXBYWCNB.cjs} +190 -799
- package/dist/{chunk-3BYXOISI.cjs → chunk-Q3HB3IX6.cjs} +4 -4
- package/dist/{chunk-RXCOVONX.cjs → chunk-RBMUOIXE.cjs} +289 -34
- package/dist/{chunk-MSBNHCSE.cjs → chunk-RJHGCUUD.cjs} +6 -6
- package/dist/{chunk-I6VG7F6Z.cjs → chunk-RSONDMYW.cjs} +708 -141
- package/dist/{chunk-GZDNPHMT.cjs → chunk-SHMPFCUE.cjs} +19 -19
- package/dist/{chunk-ZIBVCOW6.cjs → chunk-SN4FCXFC.cjs} +19 -19
- package/dist/{chunk-7KM52NMN.cjs → chunk-SN5T7WYO.cjs} +2 -2
- package/dist/{chunk-7MSZR65Z.cjs → chunk-SQJZGVDR.cjs} +7 -7
- package/dist/chunk-SYABFMD7.cjs +633 -0
- package/dist/{chunk-2RRFEYFH.cjs → chunk-TICB3MAC.cjs} +16 -16
- package/dist/{chunk-AOOKHUV5.cjs → chunk-U7Z7XYR2.cjs} +5 -5
- package/dist/{chunk-JEWQAXVG.cjs → chunk-UA2THQFV.cjs} +6 -6
- package/dist/{chunk-LHZPAHU3.cjs → chunk-VIK4L2YF.cjs} +112 -521
- package/dist/{chunk-4YWMAQ4J.cjs → chunk-VM2Y6BDY.cjs} +4 -4
- package/dist/{chunk-IRRKE2ZE.cjs → chunk-VMS3KWYI.cjs} +21 -21
- package/dist/{chunk-4SLARW6F.cjs → chunk-VU5NUD46.cjs} +17 -17
- package/dist/{chunk-XHY6TVYG.cjs → chunk-VV5CVOF7.cjs} +13 -13
- package/dist/{chunk-CCIBPGPZ.cjs → chunk-VYSAWPSS.cjs} +57 -57
- package/dist/{chunk-TTNEMQ2A.cjs → chunk-W7YRWEWQ.cjs} +22 -22
- package/dist/{chunk-C7MUOGEW.cjs → chunk-X7R5SY62.cjs} +6 -6
- package/dist/{chunk-ILR5KBMB.cjs → chunk-XOK3KTSS.cjs} +6 -6
- package/dist/{chunk-2CZM2I3T.cjs → chunk-XUIX45VU.cjs} +19 -19
- package/dist/{chunk-TGRMPS3A.cjs → chunk-XWH46PVJ.cjs} +165 -43
- package/dist/{chunk-WQYXXECR.cjs → chunk-Y5XVMK3K.cjs} +6 -6
- package/dist/{chunk-AK4TX2WG.cjs → chunk-YCNKEDTG.cjs} +13 -13
- package/dist/{chunk-PJJB24DU.cjs → chunk-YEF7SE3X.cjs} +20 -20
- package/dist/{chunk-RVLV4XW6.cjs → chunk-YMTVPMU3.cjs} +22 -22
- package/dist/data/index.cjs +2 -2
- package/dist/entries/autograph-lazy.cjs +2 -2
- package/dist/entries/charts/acoustictransport.cjs +3 -3
- package/dist/entries/charts/analysischarts.cjs +3 -3
- package/dist/entries/charts/astrocharts.cjs +3 -3
- package/dist/entries/charts/bars.cjs +3 -3
- package/dist/entries/charts/bayesiancharts.cjs +3 -3
- package/dist/entries/charts/biocharts.cjs +3 -3
- package/dist/entries/charts/biologycharts.cjs +11 -3
- package/dist/entries/charts/biologycharts.d.ts +1 -1
- package/dist/entries/charts/biologycharts.js +3 -2
- package/dist/entries/charts/business.cjs +3 -3
- package/dist/entries/charts/carecharts.cjs +3 -3
- package/dist/entries/charts/chemistrycharts.cjs +3 -3
- package/dist/entries/charts/civicscharts.cjs +3 -3
- package/dist/entries/charts/clinicalcharts.cjs +3 -3
- package/dist/entries/charts/comparison.cjs +3 -3
- package/dist/entries/charts/demography.cjs +3 -3
- package/dist/entries/charts/density.cjs +3 -3
- package/dist/entries/charts/diagrams.cjs +3 -3
- package/dist/entries/charts/distribution.cjs +3 -3
- package/dist/entries/charts/doecharts.cjs +13 -3
- package/dist/entries/charts/doecharts.d.ts +1 -1
- package/dist/entries/charts/doecharts.js +2 -1
- package/dist/entries/charts/earthscience.cjs +3 -3
- package/dist/entries/charts/economicscharts.cjs +3 -3
- package/dist/entries/charts/energycharts.cjs +3 -3
- package/dist/entries/charts/engineering.cjs +3 -3
- package/dist/entries/charts/fieldcharts.cjs +7 -3
- package/dist/entries/charts/fieldcharts.d.ts +1 -1
- package/dist/entries/charts/fieldcharts.js +3 -2
- package/dist/entries/charts/financial.cjs +3 -3
- package/dist/entries/charts/flow.cjs +3 -3
- package/dist/entries/charts/frameworks.cjs +3 -3
- package/dist/entries/charts/genomics.cjs +3 -3
- package/dist/entries/charts/geoflows.cjs +3 -3
- package/dist/entries/charts/geomaps.cjs +3 -3
- package/dist/entries/charts/geosciencecharts.cjs +3 -3
- package/dist/entries/charts/hierarchy.cjs +3 -3
- package/dist/entries/charts/indicators.cjs +3 -3
- package/dist/entries/charts/inferencecharts.cjs +3 -3
- package/dist/entries/charts/layoutcharts.cjs +3 -3
- package/dist/entries/charts/lifescience.cjs +4 -4
- package/dist/entries/charts/linesareas.cjs +3 -3
- package/dist/entries/charts/logisticscharts.cjs +3 -3
- package/dist/entries/charts/machinecharts.cjs +7 -3
- package/dist/entries/charts/machinecharts.d.ts +1 -1
- package/dist/entries/charts/machinecharts.js +2 -1
- package/dist/entries/charts/massive.cjs +3 -3
- package/dist/entries/charts/mathematical.cjs +3 -3
- package/dist/entries/charts/matrix.cjs +3 -3
- package/dist/entries/charts/medicalcharts.cjs +4 -4
- package/dist/entries/charts/mlcharts.cjs +4 -4
- package/dist/entries/charts/modelcharts.cjs +6 -5
- package/dist/entries/charts/multivariate.cjs +3 -3
- package/dist/entries/charts/musiccharts.cjs +3 -3
- package/dist/entries/charts/network.cjs +3 -3
- package/dist/entries/charts/physicscharts.cjs +3 -3
- package/dist/entries/charts/pictorial.cjs +4 -4
- package/dist/entries/charts/portfoliocharts.cjs +3 -3
- package/dist/entries/charts/productcharts.cjs +3 -3
- package/dist/entries/charts/proportion.cjs +3 -3
- package/dist/entries/charts/qualitycharts.cjs +3 -3
- package/dist/entries/charts/radial.cjs +3 -3
- package/dist/entries/charts/reliabilitycharts.cjs +5 -3
- package/dist/entries/charts/scatter.cjs +3 -3
- package/dist/entries/charts/scientific.cjs +3 -3
- package/dist/entries/charts/seriescharts.cjs +3 -3
- package/dist/entries/charts/signals.cjs +7 -3
- package/dist/entries/charts/signals.d.ts +1 -1
- package/dist/entries/charts/signals.js +2 -1
- package/dist/entries/charts/softwarediagrams.cjs +21 -3
- package/dist/entries/charts/softwarediagrams.d.ts +1 -1
- package/dist/entries/charts/softwarediagrams.js +4 -2
- package/dist/entries/charts/sportscharts.cjs +13 -3
- package/dist/entries/charts/sportscharts.d.ts +1 -1
- package/dist/entries/charts/sportscharts.js +3 -1
- package/dist/entries/charts/statistics.cjs +6 -6
- package/dist/entries/charts/strategycharts.cjs +30 -3
- package/dist/entries/charts/strategycharts.d.ts +1 -1
- package/dist/entries/charts/strategycharts.js +6 -1
- package/dist/entries/charts/structure.cjs +3 -3
- package/dist/entries/charts/surveycharts.cjs +3 -3
- package/dist/entries/charts/systemscharts.cjs +3 -3
- package/dist/entries/charts/textcharts.cjs +5 -5
- package/dist/entries/charts/thematicmaps.cjs +4 -4
- package/dist/entries/charts/threebars.cjs +3 -3
- package/dist/entries/charts/threefields.cjs +53 -0
- package/dist/entries/charts/threefields.d.ts +1 -0
- package/dist/entries/charts/threefields.js +6 -0
- package/dist/entries/charts/threeglobe.cjs +3 -3
- package/dist/entries/charts/threenetwork.cjs +3 -3
- package/dist/entries/charts/threestrata.cjs +3 -3
- package/dist/entries/charts/threesurfaces.cjs +7 -3
- package/dist/entries/charts/threesurfaces.d.ts +1 -1
- package/dist/entries/charts/threesurfaces.js +2 -1
- package/dist/entries/charts/threevolume.cjs +4 -4
- package/dist/entries/charts/timeline.cjs +3 -3
- package/dist/entries/charts/tracecharts.cjs +3 -3
- package/dist/entries/charts/trackscharts.cjs +3 -3
- package/dist/entries/charts/tradingcharts.cjs +6 -4
- package/dist/entries/charts/tradingcharts.d.ts +1 -1
- package/dist/entries/charts/tradingcharts.js +2 -1
- package/dist/entries/three.cjs +60 -20
- package/dist/entries/three.d.ts +1 -1
- package/dist/entries/three.js +7 -1
- package/dist/index.cjs +258 -97
- package/dist/index.d.cts +1953 -10
- package/dist/index.d.ts +1953 -10
- package/dist/index.js +26 -5
- package/dist/page/index.cjs +2 -2
- package/dist/react/components.js +58 -1
- package/dist/react/index.cjs +135 -92
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +2 -2
- package/package.json +1 -1
- package/dist/AutoGraph-XLBJQDRB.cjs +0 -140
- package/dist/catalog-O7XGDD2H.cjs +0 -137
- package/dist/chunk-77K2HTRC.cjs +0 -3220
- package/dist/chunk-XEK47TVD.cjs +0 -323
- /package/dist/{chunk-UMEKIIHJ.cjs → chunk-LNWTC72Y.cjs} +0 -0
|
@@ -193,8 +193,8 @@ var WHOLE_ROW = 1e6;
|
|
|
193
193
|
var SIDE_WIDTH = 260;
|
|
194
194
|
var BODY2 = { flex: "1 1 0", minWidth: "0", minHeight: "0", position: "relative", overflow: "hidden" };
|
|
195
195
|
var ABOUT = { flex: "0 0 auto", margin: "0", padding: "6px 4px 0", fontSize: "13px", lineHeight: "1.45", overflowWrap: "anywhere", color: "var(--page-ink)" };
|
|
196
|
-
var loadCatalog = () => Promise.resolve().then(() => _interopRequireWildcard(require("./catalog-
|
|
197
|
-
var loadAutoGraph = () => Promise.resolve().then(() => _interopRequireWildcard(require("./AutoGraph-
|
|
196
|
+
var loadCatalog = () => Promise.resolve().then(() => _interopRequireWildcard(require("./catalog-DI4XZ46L.cjs"))).then(({ catalog }) => catalog);
|
|
197
|
+
var loadAutoGraph = () => Promise.resolve().then(() => _interopRequireWildcard(require("./AutoGraph-PDPEAIXL.cjs"))).then(({ AutoGraph }) => AutoGraph);
|
|
198
198
|
var line = (parent, tag, text, style) => {
|
|
199
199
|
const node = parent.appendChild(document.createElement(tag));
|
|
200
200
|
node.textContent = text;
|
|
@@ -15,7 +15,7 @@ var _chunkEEF5WRRZcjs = require('./chunk-EEF5WRRZ.cjs');
|
|
|
15
15
|
var _chunkPY4R3IFFcjs = require('./chunk-PY4R3IFF.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLNWTC72Ycjs = require('./chunk-LNWTC72Y.cjs');
|
|
19
19
|
|
|
20
20
|
// src/charts/energycharts/energyEnums.ts
|
|
21
21
|
var StripesForm = /* @__PURE__ */ ((StripesForm2) => {
|
|
@@ -118,7 +118,7 @@ var warming = (year) => {
|
|
|
118
118
|
var EnergySamples = class {
|
|
119
119
|
/** `{ year, month, anomaly }`, in °C above 1850 to 1900. */
|
|
120
120
|
static monthlyAnomaly(seed = 1, from = 1850, to = 2024) {
|
|
121
|
-
const { n } =
|
|
121
|
+
const { n } = _chunkLNWTC72Ycjs.SampleData.rng(seed);
|
|
122
122
|
let slow = 0, fast = 0;
|
|
123
123
|
return Array.from({ length: to - from + 1 }, (_, i) => from + i).flatMap((year) => {
|
|
124
124
|
slow = 0.6 * slow + 0.07 * n();
|
|
@@ -134,7 +134,7 @@ var EnergySamples = class {
|
|
|
134
134
|
}
|
|
135
135
|
/** `{ unit, fuel, capacity, cost, emissions }`: MW, money per MWh, tonnes of CO2 per MWh. */
|
|
136
136
|
static fleet(seed = 1) {
|
|
137
|
-
const { u } =
|
|
137
|
+
const { u } = _chunkLNWTC72Ycjs.SampleData.rng(seed);
|
|
138
138
|
return FLEET.flatMap(({ fuel, units, size, cost, emissions }) => Array.from({ length: units }, (_, i) => ({
|
|
139
139
|
unit: `${fuel} ${i + 1}`,
|
|
140
140
|
fuel,
|
|
@@ -145,7 +145,7 @@ var EnergySamples = class {
|
|
|
145
145
|
}
|
|
146
146
|
/** `{ year, hour, load, solar, wind }` in MW for one spring day of a California-sized grid, as solar grows. */
|
|
147
147
|
static springDay(seed = 1) {
|
|
148
|
-
const { n, u } =
|
|
148
|
+
const { n, u } = _chunkLNWTC72Ycjs.SampleData.rng(seed);
|
|
149
149
|
return DUCK_YEARS.flatMap(([year, build]) => {
|
|
150
150
|
const breeze = 1500 + u() * 800;
|
|
151
151
|
return Array.from({ length: 24 }, (_, hour) => {
|
|
@@ -158,7 +158,7 @@ var EnergySamples = class {
|
|
|
158
158
|
}
|
|
159
159
|
/** `{ date, tmean, tnormal }` in °F, one year of daily means in a city with cold winters and hot summers. */
|
|
160
160
|
static dailyTemperature(seed = 1) {
|
|
161
|
-
const { n } =
|
|
161
|
+
const { n } = _chunkLNWTC72Ycjs.SampleData.rng(seed);
|
|
162
162
|
let drift = 0;
|
|
163
163
|
return Array.from({ length: 365 }, (_, day) => {
|
|
164
164
|
const tnormal = 51 + 25 * Math.sin((day - 105) / 365 * 2 * Math.PI);
|
|
@@ -19,7 +19,7 @@ var _chunk6KYVL5HYcjs = require('./chunk-6KYVL5HY.cjs');
|
|
|
19
19
|
var _chunkPY4R3IFFcjs = require('./chunk-PY4R3IFF.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkLNWTC72Ycjs = require('./chunk-LNWTC72Y.cjs');
|
|
23
23
|
|
|
24
24
|
// src/charts/threebars/Series3DChart.ts
|
|
25
25
|
var _d3 = require('d3');
|
|
@@ -152,7 +152,7 @@ var Area3DChart = (_class = class _Area3DChart extends Series3DChart {
|
|
|
152
152
|
shape: "table" /* Table */,
|
|
153
153
|
description: "Extrudes the area under each series into a solid wall, separately in depth or stacked to show the total.",
|
|
154
154
|
tags: ["area", "wall", "stacked", "streamgraph"],
|
|
155
|
-
sample: (seed) =>
|
|
155
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.timeSeries(seed, 32, 5),
|
|
156
156
|
variants: {
|
|
157
157
|
curve: ["monotone" /* Monotone */, "linear" /* Linear */, "step" /* Step */, "basis" /* Basis */],
|
|
158
158
|
stack: ["grouped" /* None */, "stacked" /* Stacked */, "normalized" /* Normalized */],
|
|
@@ -346,7 +346,7 @@ var Bar3DChart = (_class2 = class extends BarField3DChart {
|
|
|
346
346
|
shape: "table" /* Table */,
|
|
347
347
|
description: "Places bars on a floor of two categorical dimensions, with height showing the value.",
|
|
348
348
|
tags: ["column", "skyline", "cluster", "horizontal"],
|
|
349
|
-
sample: (seed) =>
|
|
349
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 7, 5),
|
|
350
350
|
variants: {
|
|
351
351
|
shape: ["box" /* Box */, "hexagon" /* Hexagon */, "pyramid" /* Pyramid */],
|
|
352
352
|
layout: ["field" /* Field */, "cluster" /* Cluster */],
|
|
@@ -478,8 +478,8 @@ var Bubble3DChart = (_class3 = class extends PointCloud3DChart {
|
|
|
478
478
|
description: "Adds a fourth measure to a 3D scatter by sizing spheres honestly, by cross-section area or by volume.",
|
|
479
479
|
tags: ["bubble", "sphere", "four variables", "packing", "cluster"],
|
|
480
480
|
sample: (seed) => {
|
|
481
|
-
const depth =
|
|
482
|
-
return
|
|
481
|
+
const depth = _chunkLNWTC72Ycjs.SampleData.points(seed + 1, 45, 3);
|
|
482
|
+
return _chunkLNWTC72Ycjs.SampleData.points(seed, 45, 3).map((row, i) => ({ ...row, z: depth[(i + 1) % depth.length].y }));
|
|
483
483
|
},
|
|
484
484
|
variants: {
|
|
485
485
|
sizing: ["area" /* Area */, "volume" /* Volume */],
|
|
@@ -583,7 +583,7 @@ var Candlestick3DChart = (_class4 = class extends _chunkD4VWTB2Rcjs.Cartesian3DC
|
|
|
583
583
|
shape: "table" /* Table */,
|
|
584
584
|
description: "Draws open, high, low and close in space, using depth to show traded volume beside price.",
|
|
585
585
|
tags: ["ohlc", "stock", "heikin ashi", "volume", "finance"],
|
|
586
|
-
sample: (seed) =>
|
|
586
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.ohlc(seed, 40),
|
|
587
587
|
variants: {
|
|
588
588
|
kind: ["candle" /* Candle */, "ohlc" /* Ohlc */, "heikin-ashi" /* HeikinAshi */],
|
|
589
589
|
volumeMode: ["volume-mat" /* Mat */, "none" /* None */, "volume-depth" /* Depth */, "volume-wall" /* Wall */],
|
|
@@ -714,7 +714,7 @@ var Cylinder3DBars = (_class5 = class extends BarField3DChart {
|
|
|
714
714
|
shape: "table" /* Table */,
|
|
715
715
|
description: "Stands round columns, cones or frustums on a category by series floor, with height showing the value.",
|
|
716
716
|
tags: ["cylinder", "cone", "column", "tower"],
|
|
717
|
-
sample: (seed) =>
|
|
717
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 6, 4),
|
|
718
718
|
variants: {
|
|
719
719
|
shape: ["cylinder" /* Cylinder */, "cone" /* Cone */, "frustum" /* Frustum */],
|
|
720
720
|
layout: ["field" /* Field */, "cluster" /* Cluster */],
|
|
@@ -870,7 +870,7 @@ var Donut3DChart = (_class6 = class extends Round3DChart {
|
|
|
870
870
|
shape: "table" /* Table */,
|
|
871
871
|
description: "Extrudes a ring of slices into solids, with optional nested rings to compare composition across series.",
|
|
872
872
|
tags: ["doughnut", "ring", "nested", "part to whole"],
|
|
873
|
-
sample: (seed) =>
|
|
873
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 6, 3),
|
|
874
874
|
variants: {
|
|
875
875
|
innerRadius: [0.55, 0.35, 0.72],
|
|
876
876
|
rings: [false, "series"],
|
|
@@ -972,7 +972,7 @@ var Funnel3DChart = (_class7 = class extends Tier3DChart {
|
|
|
972
972
|
shape: "table" /* Table */,
|
|
973
973
|
description: "Stacks sequential stages into a solid funnel, showing how much of a quantity survives each step.",
|
|
974
974
|
tags: ["conversion", "pipeline", "stages", "drop-off"],
|
|
975
|
-
sample: (seed) =>
|
|
975
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 6, 1).map((row, i) => ({ ...row, value: +row.value * 0.5 + 100 - i * 14 })),
|
|
976
976
|
variants: {
|
|
977
977
|
encoding: ["area" /* Area */, "radius" /* Radius */, "height" /* Height */],
|
|
978
978
|
taper: ["smooth" /* Smooth */, "stepped" /* Stepped */],
|
|
@@ -1043,7 +1043,7 @@ var Histogram3DChart = (_class8 = class extends _chunkD4VWTB2Rcjs.Cartesian3DCha
|
|
|
1043
1043
|
shape: "table" /* Table */,
|
|
1044
1044
|
description: "Bins two numeric columns into a grid and raises a tower for each cell to show their joint distribution.",
|
|
1045
1045
|
tags: ["bivariate", "hexbin", "joint distribution", "lego plot"],
|
|
1046
|
-
sample: (seed) =>
|
|
1046
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.points(seed, 900, 3).map(({ x, y }) => ({ x, y: +(100 - +y).toFixed(2) })),
|
|
1047
1047
|
variants: {
|
|
1048
1048
|
rule: ["sturges" /* Sturges */, "scott" /* Scott */, "freedman-diaconis" /* FreedmanDiaconis */, "sqrt" /* Sqrt */],
|
|
1049
1049
|
cell: ["square" /* Square */, "hexagon" /* Hexagon */],
|
|
@@ -1188,7 +1188,7 @@ var Line3DChart = (_class9 = class _Line3DChart extends Series3DChart {
|
|
|
1188
1188
|
shape: "table" /* Table */,
|
|
1189
1189
|
description: "Runs each series as a tube in its own depth lane, separating trends that would tangle on a flat chart.",
|
|
1190
1190
|
tags: ["tube", "time series", "trend", "waterfall lines"],
|
|
1191
|
-
sample: (seed) =>
|
|
1191
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.timeSeries(seed, 48, 5),
|
|
1192
1192
|
variants: {
|
|
1193
1193
|
curve: ["linear" /* Linear */, "monotone" /* Monotone */, "step" /* Step */, "catmull-rom" /* CatmullRom */, "basis" /* Basis */],
|
|
1194
1194
|
marks: ["none" /* None */, "ends" /* Ends */, "peaks" /* Peaks */, "all-points" /* All */],
|
|
@@ -1317,7 +1317,7 @@ var Lollipop3DChart = (_class10 = class extends BarField3DChart {
|
|
|
1317
1317
|
shape: "table" /* Table */,
|
|
1318
1318
|
description: "Replaces solid 3D bars with stems and heads so that values in back rows stay readable.",
|
|
1319
1319
|
tags: ["dot", "stem", "pin"],
|
|
1320
|
-
sample: (seed) =>
|
|
1320
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 7, 5),
|
|
1321
1321
|
variants: {
|
|
1322
1322
|
head: ["sphere" /* Sphere */, "cube" /* Cube */, "octahedron" /* Octahedron */, "disc" /* Disc */],
|
|
1323
1323
|
layout: ["field" /* Field */, "cluster" /* Cluster */],
|
|
@@ -1361,7 +1361,7 @@ var Pie3DChart = (_class11 = class extends Round3DChart {
|
|
|
1361
1361
|
shape: "table" /* Table */,
|
|
1362
1362
|
description: "Extrudes pie slices into solids, optionally using slice height to repeat the value or its rank.",
|
|
1363
1363
|
tags: ["pie", "share", "part to whole", "exploded"],
|
|
1364
|
-
sample: (seed) =>
|
|
1364
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 6, 1),
|
|
1365
1365
|
variants: {
|
|
1366
1366
|
depth: ["uniform" /* Uniform */, "by-value" /* ByValue */, "by-rank" /* ByRank */],
|
|
1367
1367
|
explode: ["none" /* None */, "largest" /* Largest */, "all" /* All */],
|
|
@@ -1391,7 +1391,7 @@ var Pyramid3DChart = (_class12 = class extends Tier3DChart {
|
|
|
1391
1391
|
shape: "table" /* Table */,
|
|
1392
1392
|
description: "Cuts a solid pyramid into tiers, with tier height or volume proportional to each level of a hierarchy.",
|
|
1393
1393
|
tags: ["pyramid", "hierarchy", "tiers", "cone"],
|
|
1394
|
-
sample: (seed) =>
|
|
1394
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 5, 1),
|
|
1395
1395
|
variants: {
|
|
1396
1396
|
encoding: ["volume" /* Volume */, "height" /* Height */, "equal-tiers" /* Equal */],
|
|
1397
1397
|
section: ["square" /* Square */, "round" /* Round */, "hexagon" /* Hexagon */],
|
|
@@ -1463,7 +1463,7 @@ var Radar3DChart = (_class13 = class extends _chunk6KYVL5HYcjs.Chart3D {
|
|
|
1463
1463
|
shape: "table" /* Table */,
|
|
1464
1464
|
description: "Lifts radar profiles into space, giving each series its own level so overlapping shapes stop hiding one another.",
|
|
1465
1465
|
tags: ["spider", "polar", "profile", "web"],
|
|
1466
|
-
sample: (seed) =>
|
|
1466
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 6, 3),
|
|
1467
1467
|
variants: {
|
|
1468
1468
|
layout: ["layered" /* Layered */, "overlaid" /* Overlaid */, "tent" /* Tent */, "spoke-bars" /* Spokes */],
|
|
1469
1469
|
fill: ["solid" /* Solid */, "outline" /* Outline */],
|
|
@@ -1632,7 +1632,7 @@ var Ribbon3DChart = (_class14 = class _Ribbon3DChart extends Series3DChart {
|
|
|
1632
1632
|
shape: "table" /* Table */,
|
|
1633
1633
|
description: "Sweeps each series into a wide ribbon, turning parallel trends into a landscape that reads well in depth.",
|
|
1634
1634
|
tags: ["ribbon", "strip", "band", "trend"],
|
|
1635
|
-
sample: (seed) =>
|
|
1635
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.timeSeries(seed, 36, 5),
|
|
1636
1636
|
variants: {
|
|
1637
1637
|
curve: ["monotone" /* Monotone */, "linear" /* Linear */, "step" /* Step */, "basis" /* Basis */],
|
|
1638
1638
|
section: ["flat" /* Flat */, "solid" /* Solid */, "trough" /* Trough */, "fin" /* Fin */],
|
|
@@ -1708,8 +1708,8 @@ var Scatter3DChart = (_class15 = class extends PointCloud3DChart {
|
|
|
1708
1708
|
description: "Plots three numeric columns as a point cloud, revealing clusters and planes that a flat scatter hides.",
|
|
1709
1709
|
tags: ["point cloud", "xyz", "regression plane", "clusters"],
|
|
1710
1710
|
sample: (seed) => {
|
|
1711
|
-
const depth =
|
|
1712
|
-
return
|
|
1711
|
+
const depth = _chunkLNWTC72Ycjs.SampleData.points(seed + 1, 150, 3);
|
|
1712
|
+
return _chunkLNWTC72Ycjs.SampleData.points(seed, 150, 3).map((row, i) => ({ ...row, z: depth[(i + 1) % depth.length].y }));
|
|
1713
1713
|
},
|
|
1714
1714
|
variants: {
|
|
1715
1715
|
symbol: ["sphere" /* Sphere */, "cube" /* Cube */, "octahedron" /* Octahedron */],
|
|
@@ -1813,7 +1813,7 @@ var Stacked3DBars = (_class16 = class extends _chunkD4VWTB2Rcjs.Cartesian3DChart
|
|
|
1813
1813
|
shape: "table" /* Table */,
|
|
1814
1814
|
description: "Stacks part-to-whole segments in each cell of a floor, comparing composition across two categorical dimensions.",
|
|
1815
1815
|
tags: ["stacked", "normalized", "composition", "layered"],
|
|
1816
|
-
sample: (seed) => ["Retail", "Online", "Partner"].flatMap((lane, i) =>
|
|
1816
|
+
sample: (seed) => ["Retail", "Online", "Partner"].flatMap((lane, i) => _chunkLNWTC72Ycjs.SampleData.categories(seed + i, 6, 4).map((row) => ({ ...row, lane }))),
|
|
1817
1817
|
variants: {
|
|
1818
1818
|
stack: ["stacked" /* Stacked */, "normalized" /* Normalized */],
|
|
1819
1819
|
offset: ["none" /* None */, "silhouette" /* Silhouette */],
|
|
@@ -1909,7 +1909,7 @@ var Stem3DChart = (_class17 = class _Stem3DChart extends PointCloud3DChart {
|
|
|
1909
1909
|
description: "Raises a stem from a baseline at each x, z sample, showing discrete measurements without interpolating a surface.",
|
|
1910
1910
|
tags: ["stem", "discrete", "sampled", "impulse"],
|
|
1911
1911
|
sample: (seed) => {
|
|
1912
|
-
const { x, y, z } =
|
|
1912
|
+
const { x, y, z } = _chunkLNWTC72Ycjs.SampleData.surface(seed, 13);
|
|
1913
1913
|
return y.flatMap((depth, j) => x.map((across, i) => ({ x: +across.toFixed(3), z: +depth.toFixed(3), y: +z[j][i].toFixed(3) })));
|
|
1914
1914
|
},
|
|
1915
1915
|
variants: {
|
|
@@ -1996,7 +1996,7 @@ var Waterfall3DChart = (_class18 = class extends _chunkD4VWTB2Rcjs.Cartesian3DCh
|
|
|
1996
1996
|
shape: "table" /* Table */,
|
|
1997
1997
|
description: "Floats each gain and loss on the running total, with one waterfall per scenario lane in depth.",
|
|
1998
1998
|
tags: ["bridge", "cumulative", "variance"],
|
|
1999
|
-
sample: (seed) =>
|
|
1999
|
+
sample: (seed) => _chunkLNWTC72Ycjs.SampleData.categories(seed, 7, 3).map((row) => ({ ...row, value: +row.value - 55 })),
|
|
2000
2000
|
variants: {
|
|
2001
2001
|
connectors: [true, false],
|
|
2002
2002
|
total: [true, false],
|