mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
61 lines
1.5 KiB
HTML
61 lines
1.5 KiB
HTML
<!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
|
|
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
|
|
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 horizontal
|
|
title Basic xychart
|
|
x-axis "this is x axis" [category1, "category 2", category3, category4]
|
|
y-axis yaxisText 10 --> 150
|
|
line [23, 46, 75, 43]
|
|
</pre>
|
|
|
|
<hr />
|
|
|
|
<script type="module">
|
|
import mermaid from './mermaid.esm.mjs';
|
|
mermaid.initialize({
|
|
theme: 'default',
|
|
logLevel: 0,
|
|
securityLevel: 'loose',
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|