Showing 2 of 4 files from the diff.

@@ -122,3 +122,7 @@
Loading
122 122
function Base.show(io::IO, m::MIME"application/prs.juno.plotpane+html", v::VLSpec)
123 123
    writehtml_full(io, v)
124 124
end
125 +
126 +
function Base.show(io::IO, m::MIME"text/html", v::VLSpec)
127 +
    writehtml_partial_script(io, v)
128 +
end

@@ -75,7 +75,7 @@
Loading
75 75
VegaLite js files are loaded from the web (to accommodate the security model of
76 76
IJulia) using requirejs.
77 77
"""
78 -
function writehtml_partial(io::IO, spec::String; title="VegaLite plot")
78 +
function writehtml_partial_require(io::IO, spec::String; title="VegaLite plot")
79 79
  divid = "vg" * randstring(3)
80 80
81 81
  println(io,
@@ -135,6 +135,43 @@
Loading
135 135
  """)
136 136
end
137 137
138 +
"""
139 +
Creates a HTML script + div block for showing the plot (typically for Pluto).
140 +
VegaLite js files are loaded from the web using script tags.
141 +
"""
142 +
function writehtml_partial_script(io::IO, spec::VLSpec; title="VegaLite plot")
143 +
  divid = "vg" * randstring(3)
144 +
  print(io, """
145 +
    <style media="screen">
146 +
      .vega-actions a {
147 +
        margin-right: 10px;
148 +
        font-family: sans-serif;
149 +
        font-size: x-small;
150 +
        font-style: italic;
151 +
      }
152 +
    </style>
153 +
154 +
    <script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
155 +
    <script src="https://cdn.jsdelivr.net/npm/vega-lite@4"></script>
156 +
    <script src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>
157 +
158 +
    <div id="$divid"></div>
159 +
160 +
    <script>
161 +
      var spec = """)
162 +
  our_json_print(io, spec)
163 +
  print(io,"""
164 +
      ;
165 +
      var opt = {
166 +
        mode: "vega-lite",
167 +
        renderer: "$(Vega.RENDERER)",
168 +
        actions: $(Vega.ACTIONSLINKS)
169 +
      };
170 +
      vegaEmbed("#$divid", spec, opt);
171 +
    </script>
172 +
  """)
173 +
end
174 +
138 175
function Base.display(d::REPL.REPLDisplay, plt::VLSpec)
139 176
  # checkplot(plt)
140 177
  tmppath = writehtml_full(plt)
Files Coverage
src 76.75%
Project Totals (12 files) 76.75%
codecov-umbrella
Build #194776662 -
unittests
codecov-umbrella
Build #194776662 -
unittests
codecov-umbrella
Build #194776662 -
unittests
codecov-umbrella
Build #194776662 -
unittests
codecov-umbrella
Build #194776662 -
unittests
codecov-umbrella
Build #194776662 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading