mermaid/demos/xychart.html

90 lines
2.6 KiB
HTML
Raw Normal View History

2023-05-20 19:32:20 +05:30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Mermaid Quick Test Page</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
<style>
div.mermaid {
/* font-family: 'trebuchet ms', verdana, arial; */
font-family: 'Courier New', Courier, monospace !important;
}
</style>
</head>
<body>
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta horizontal
2023-08-20 17:51:53 +05:30
title "Basic xychart"
x-axis "this is x axis" [category1, "category 2", category3, category4]
y-axis yaxisText 10 --> 150
bar "sample bat" [52, 96, 35, 10]
line [23, 46, 75, 43]
2023-05-20 19:32:20 +05:30
</pre>
<hr />
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta
2023-08-20 17:51:53 +05:30
title "Basic xychart"
x-axis "this is x axis" [category1, "category 2", category3, category4]
y-axis yaxisText 10 --> 150
bar "sample bat" [52, 96, 35, 10]
line [23, 46, 75, 43]
</pre>
<hr />
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta
2023-07-21 22:42:46 +05:30
line [23, 46, 77, 34]
line [45, 32, 33, 12]
line [87, 54, 99, 85]
line [78, 88, 22, 4]
line [22, 29, 75, 33]
bar "sample bat" [52, 96, 35, 10]
</pre>
2023-08-20 17:51:53 +05:30
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta
title "Basic xychart with many categories"
x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
y-axis yaxisText 10 --> 150
2023-09-01 21:27:10 +05:30
bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
</pre>
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta
title "Line chart with many category"
x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
y-axis yaxisText 10 --> 150
line "sample line" [52, 96, 35, 10, 87, 34, 67, 99]
2023-08-20 17:51:53 +05:30
</pre>
<h1>XY Charts demos</h1>
<pre class="mermaid">
xychart-beta
title "Basic xychart with many categories with category overlap"
x-axis "this is x axis" [category1, "Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat.", category3, category4, category5, category6, category7]
y-axis yaxisText 10 --> 150
2023-09-01 21:27:10 +05:30
bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
2023-08-20 17:51:53 +05:30
</pre>
<hr />
2023-05-20 19:32:20 +05:30
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({
theme: 'default',
2023-09-01 21:27:10 +05:30
logLevel: 3,
2023-05-20 19:32:20 +05:30
securityLevel: 'loose',
});
</script>
</body>
</html>