Skip to content

Commit 9ca86f3

Browse files
committed
add simple quarto file
1 parent d4e97a9 commit 9ca86f3

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ deps/temp*
1414
notebooks/
1515
*.ipynb
1616
*.html
17-
docs/demo_files
17+
quarto/index_files/*

quarto/index.qmd

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: "PlotlyLight Demo"
3+
author: "Josh Day"
4+
date: "2023-01-18"
5+
lib-dir: "./"
6+
format:
7+
html:
8+
code-fold: true
9+
jupyter: julia-1.8
10+
---
11+
12+
13+
[**PlotlyLight**](https://github.com/juliacomputing/PlotlyLight.jl) is a Julia package for writing [plotly.js](https://plotly.com/javascript/) plots.
14+
15+
**PlotlyLight** is different from other Plotly-based packages in that you are meant to directly use [Plotly's javascript docs](https://plotly.com/javascript/).
16+
17+
18+
# Quickstart
19+
20+
```{julia}
21+
#| echo: false
22+
using PlotlyLight
23+
PlotlyLight.src!(:none)
24+
cp(PlotlyLight.plotlyjs, joinpath(@__DIR__, "plotly.js"); force=true);
25+
```
26+
27+
```{julia}
28+
using PlotlyLight
29+
30+
# Change template
31+
PlotlyLight.template!("plotly_dark")
32+
33+
# Make plot
34+
p = Plot(x = 1:20, y = cumsum(randn(20)), type="scatter", mode="lines+markers")
35+
36+
# Make changes
37+
p.layout.title.text = "My Title!"
38+
39+
# `display(p)` to see the updated plot
40+
p
41+
```

0 commit comments

Comments
 (0)