👀 Reading hidden code
using PlutoUI
👀 Reading hidden code
using JSON
plot (generic function with 1 method)
👀 Reading hidden code
plot(x, y) = """
<script src="https://cdn.plot.ly/plotly-1.58.0.min.js"></script>
<script id="asdf">
const container = this ?? html`<div style="width: 200px;"></div>`
Plotly.react( container, [{
}], {
width: 600,
margin: {
t: 0,
l:60,
r:20,
b:60
}
},{staticPlot: true})
return container
</script>
""" |> HTML
c3 (generic function with 1 method)
👀 Reading hidden code
c3(x,y) = """
<!-- Load c3.css -->
<link href="https://cdn.jsdelivr.net/npm/c3@0.7.20/c3.min.css" rel="stylesheet">
<!-- Load d3.js and c3.js -->
<script src="/path/to/d3.v5.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/c3@0.7.20/c3.min.js"></script>
<script id="asdf">
const container = this ?? html`<div id="aaa" style="width: 200px;"></div>`
var chart = c3.generate({
bindto: "#aaa",
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
}
});
return container
</script>
""" |> HTML
c3([1,2], [3,3])
👀 Reading hidden code
1.0:0.1:10000.0
x = 1:.1:10000
👀 Reading hidden code
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
y = sin.(x .* z)
👀 Reading hidden code
@bind z Slider(0:0.00001:0.1)
👀 Reading hidden code
JSON.json(x);
👀 Reading hidden code
plot(x,y)
👀 Reading hidden code
using Plots
👀 Reading hidden code
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
y2 = sin.(x .* z2)
👀 Reading hidden code
@bind z2 Slider(0:0.00001:0.1)
👀 Reading hidden code
PlutoUI.as_svg(Plots.plot(x, y2))
👀 Reading hidden code
👀 Reading hidden code