collab/mermaid/demos/sankey.htmlblame
View source
6dd74de1<!doctype html>
6dd74de2<html lang="en" xmlns="http://www.w3.org/1999/html">
6dd74de3 <head>
6dd74de4 <meta charset="utf-8" />
6dd74de5 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6dd74de6 <title>Sankey Mermaid Quick Test Page</title>
6dd74de7 <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
6dd74de8 </head>
6dd74de9
6dd74de10 <body>
6dd74de11 <h1>Sankey diagram demos</h1>
6dd74de12 <h2>FY20-21 Performance</h2>
6dd74de13 <pre class="mermaid">
6dd74de14 ---
6dd74de15 config:
6dd74de16 sankey:
6dd74de17 showValues: true
6dd74de18 prefix: $
6dd74de19 suffix: B
6dd74de20 width: 800
6dd74de21 nodeAlignment: left
6dd74de22 ---
6dd74de23 sankey
6dd74de24 a,b,8
6dd74de25 b,c,8
6dd74de26 c,d,8
6dd74de27 d,e,8
6dd74de28
6dd74de29 x,c,4
6dd74de30 c,y,4
6dd74de31 </pre>
6dd74de32
6dd74de33 <h2>Energy flow</h2>
6dd74de34 <pre class="mermaid">
6dd74de35 ---
6dd74de36 config:
6dd74de37 sankey:
6dd74de38 useMaxWidth: true
6dd74de39 showValues: false
6dd74de40 width: 1200
6dd74de41 height: 600
6dd74de42 linkColor: gradient
6dd74de43 nodeAlignment: justify
6dd74de44 ---
6dd74de45 sankey
6dd74de46
6dd74de47 Agricultural 'waste',Bio-conversion,124.729
6dd74de48 Bio-conversion,Liquid,0.597
6dd74de49 Bio-conversion,Losses,26.862
6dd74de50 Bio-conversion,Solid,280.322
6dd74de51 Bio-conversion,Gas,81.144
6dd74de52 Biofuel imports,Liquid,35
6dd74de53 Biomass imports,Solid,35
6dd74de54 Coal imports,Coal,11.606
6dd74de55 Coal reserves,Coal,63.965
6dd74de56 Coal,Solid,75.571
6dd74de57 District heating,Industry,10.639
6dd74de58 District heating,Heating and cooling - commercial,22.505
6dd74de59 District heating,Heating and cooling - homes,46.184
6dd74de60 Electricity grid,Over generation / exports,104.453
6dd74de61 Electricity grid,Heating and cooling - homes,113.726
6dd74de62 Electricity grid,H2 conversion,27.14
6dd74de63 Electricity grid,Industry,342.165
6dd74de64 Electricity grid,Road transport,37.797
6dd74de65 Electricity grid,Agriculture,4.412
6dd74de66 Electricity grid,Heating and cooling - commercial,40.858
6dd74de67 Electricity grid,Losses,56.691
6dd74de68 Electricity grid,Rail transport,7.863
6dd74de69 Electricity grid,Lighting & appliances - commercial,90.008
6dd74de70 Electricity grid,Lighting & appliances - homes,93.494
6dd74de71 Gas imports,Ngas,40.719
6dd74de72 Gas reserves,Ngas,82.233
6dd74de73 Gas,Heating and cooling - commercial,0.129
6dd74de74 Gas,Losses,1.401
6dd74de75 Gas,Thermal generation,151.891
6dd74de76 Gas,Agriculture,2.096
6dd74de77 Gas,Industry,48.58
6dd74de78 Geothermal,Electricity grid,7.013
6dd74de79 H2 conversion,H2,20.897
6dd74de80 H2 conversion,Losses,6.242
6dd74de81 H2,Road transport,20.897
6dd74de82 Hydro,Electricity grid,6.995
6dd74de83 Liquid,Industry,121.066
6dd74de84 Liquid,International shipping,128.69
6dd74de85 Liquid,Road transport,135.835
6dd74de86 Liquid,Domestic aviation,14.458
6dd74de87 Liquid,International aviation,206.267
6dd74de88 Liquid,Agriculture,3.64
6dd74de89 Liquid,National navigation,33.218
6dd74de90 Liquid,Rail transport,4.413
6dd74de91 Marine algae,Bio-conversion,4.375
6dd74de92 Ngas,Gas,122.952
6dd74de93 Nuclear,Thermal generation,839.978
6dd74de94 Oil imports,Oil,504.287
6dd74de95 Oil reserves,Oil,107.703
6dd74de96 Oil,Liquid,611.99
6dd74de97 Other waste,Solid,56.587
6dd74de98 Other waste,Bio-conversion,77.81
6dd74de99 Pumped heat,Heating and cooling - homes,193.026
6dd74de100 Pumped heat,Heating and cooling - commercial,70.672
6dd74de101 Solar PV,Electricity grid,59.901
6dd74de102 Solar Thermal,Heating and cooling - homes,19.263
6dd74de103 Solar,Solar Thermal,19.263
6dd74de104 Solar,Solar PV,59.901
6dd74de105 Solid,Agriculture,0.882
6dd74de106 Solid,Thermal generation,400.12
6dd74de107 Solid,Industry,46.477
6dd74de108 Thermal generation,Electricity grid,525.531
6dd74de109 Thermal generation,Losses,787.129
6dd74de110 Thermal generation,District heating,79.329
6dd74de111 Tidal,Electricity grid,9.452
6dd74de112 UK land based bioenergy,Bio-conversion,182.01
6dd74de113 Wave,Electricity grid,19.013
6dd74de114 Wind,Electricity grid,289.366
6dd74de115 </pre>
6dd74de116
6dd74de117 <script type="module">
6dd74de118 import mermaid from './mermaid.esm.mjs';
6dd74de119 mermaid.initialize({
6dd74de120 theme: 'default',
6dd74de121 logLevel: 3,
6dd74de122 securityLevel: 'loose',
6dd74de123 startOnLoad: true,
6dd74de124 });
6dd74de125 </script>
6dd74de126 </body>
6dd74de127</html>