a post with plotly.js
This is an example post with some plotly code.
```plotly
{
"data": [
{
"x": [1, 2, 3, 4],
"y": [10, 15, 13, 17],
"type": "scatter"
},
{
"x": [1, 2, 3, 4],
"y": [16, 5, 11, 9],
"type": "scatter"
}
]
}
```
Which generates:
{
"data": [
{
"x": [1, 2, 3, 4],
"y": [10, 15, 13, 17],
"type": "scatter"
},
{
"x": [1, 2, 3, 4],
"y": [16, 5, 11, 9],
"type": "scatter"
}
]
}
Also another example chart.
```plotly
{
"data": [
{
"x": [1, 2, 3, 4],
"y": [10, 15, 13, 17],
"mode": "markers"
},
{
"x": [2, 3, 4, 5],
"y": [16, 5, 11, 9],
"mode": "lines"
},
{
"x": [1, 2, 3, 4],
"y": [12, 9, 15, 12],
"mode": "lines+markers"
}
],
"layout": {
"title": {
"text": "Line and Scatter Plot"
}
}
}
```
This is how it looks like:
{
"data": [
{
"x": [1, 2, 3, 4],
"y": [10, 15, 13, 17],
"mode": "markers"
},
{
"x": [2, 3, 4, 5],
"y": [16, 5, 11, 9],
"mode": "lines"
},
{
"x": [1, 2, 3, 4],
"y": [12, 9, 15, 12],
"mode": "lines+markers"
}
],
"layout": {
"title": {
"text": "Line and Scatter Plot"
}
}
}
Enjoy Reading This Article?
Here are some more articles you might like to read next:
- Security Data Analytics — 06 — Visual Analytics
- Security Data Analytics — 07 — Text Analytics
- Security Data Analytics — 08 — File, Image and Video Analytics
- Security Data Analytics — 09 — Future Research Directions
- AI for rapid prototyping in education
- Part 1: Quick setup of a Virtual Machine in a Web Browser using Kasm and Docker
- More Fun with Kasm and Docker: Quickly spin up x86-based Ubuntu or Kali on macOS
- Wazuh, Ubuntu, Kali, Caldera — a super quick way of building a disposable cyber lab
- Hacking the HDMI airwaves — side channel attacks to recover a target display (Part 1)
- How “Vibe Coding” is changing the game (or, How AI got a busy me back into software development)