From 61c6b9b2701b2e27a7d8251e8a556bc273e29d04 Mon Sep 17 00:00:00 2001 From: Quafadas Date: Fri, 8 Mar 2024 21:36:21 +0000 Subject: [PATCH] deploy: efff70b5fc58038147b3b26a77802be0ff5b430f --- explanation/customising.html | 8 ++++---- explanation/outFiles.html | 2 +- explanation/plotTargets.html | 2 +- scala_js/scalaJS.html | 3 ++- working_chart/mutable.html | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/explanation/customising.html b/explanation/customising.html index 2a15342..0fadfc7 100644 --- a/explanation/customising.html +++ b/explanation/customising.html @@ -127,15 +127,15 @@

Customising an exi
Gaussian(2,2).plotDensity(Seq(viz.Utils.fillDiv))
 // res0: ProbabilityDensity = ProbabilityDensity(
 //   mods = List(
-//     repl.MdocSession$MdocApp$$Lambda$15212/0x0000000803a59040@43aeab42,
-//     viz.Utils$$$Lambda$15195/0x000000080391d040@6fdb8e27
+//     repl.MdocSession$MdocApp$$Lambda$15111/0x0000000803478840@4b4bc2ef,
+//     viz.Utils$$$Lambda$15094/0x000000080393f040@6e96cee2
 //   )
 // )
 LogNormal(1,0.5).plotDensity(Seq(viz.Utils.fillDiv))
 // res1: ProbabilityDensity = ProbabilityDensity(
 //   mods = List(
-//     repl.MdocSession$MdocApp$$Lambda$15212/0x0000000803a59040@7aa101ae,
-//     viz.Utils$$$Lambda$15195/0x000000080391d040@6fdb8e27
+//     repl.MdocSession$MdocApp$$Lambda$15111/0x0000000803478840@2f2eb848,
+//     viz.Utils$$$Lambda$15094/0x000000080393f040@6e96cee2
 //   )
 // )
diff --git a/explanation/outFiles.html b/explanation/outFiles.html index ace2535..2d9a95b 100644 --- a/explanation/outFiles.html +++ b/explanation/outFiles.html @@ -110,7 +110,7 @@

Where do the temporary val chart = BarChart() // chart: BarChart = BarChart(mods = List()) chart.tmpPath -// res0: Option[Path] = Some(value = /tmp/plot-11722283772016890382.txt) +// res0: Option[Path] = Some(value = /tmp/plot-11557923765194788812.txt)

It's location is in the tmpPath field of your chart. You could take advantage of the excellent os library and knowledge of the path of the file, to subsequently move it around. For example if you wish to automate producing a presentation via a script.

diff --git a/explanation/plotTargets.html b/explanation/plotTargets.html index 7a01a88..a1fa36c 100644 --- a/explanation/plotTargets.html +++ b/explanation/plotTargets.html @@ -343,7 +343,7 @@

ES Module Map

{
   "imports": {
-    "@vega/npm/": "https://cdn.jsdelivr.net/npm/"
+    "##vega-embed": "https://cdn.jsdelivr.net/npm/vega-embed@6/+esm",
+    "##vega-view": "https://cdn.jsdelivr.net/npm/vega-view@5/+esm",
   }
 }
diff --git a/working_chart/mutable.html b/working_chart/mutable.html index 1f749a2..d03e9e9 100644 --- a/working_chart/mutable.html +++ b/working_chart/mutable.html @@ -168,7 +168,7 @@

At this point, i think we have a hint on a simple way to inject data - the same way as we injected a title