From a7f2c0bc344d0881c8486282bafd3a12856b481d Mon Sep 17 00:00:00 2001 From: Thomas Di Cizerone Date: Sun, 16 Mar 2025 18:18:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=BC=EF=B8=8F=20Add=20Radar=20Demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demos/index.html | 3 ++ demos/radar.html | 136 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 demos/radar.html diff --git a/demos/index.html b/demos/index.html index 07b51a313..d615bf347 100644 --- a/demos/index.html +++ b/demos/index.html @@ -91,6 +91,9 @@
  • Architecture

  • +
  • +

    Radar

    +
  • diff --git a/demos/radar.html b/demos/radar.html new file mode 100644 index 000000000..6e9f8df82 --- /dev/null +++ b/demos/radar.html @@ -0,0 +1,136 @@ + + + + + + Mermaid Quick Test Page + + + + + +

    Radar diagram demo

    + +
    +
    +      radar-beta 
    +        title My favorite ninjas
    +        axis Agility, Speed, Strength
    +        axis Stam["Stamina"] , Intel["Intelligence"]
    +      
    +        curve Ninja1["Naruto"]{
    +            Agility 2, Speed 2,
    +            Strength 3, Stam 5,
    +            Intel 0
    +        }
    +        curve Ninja2["Sasuke"]{2, 3, 4, 1, 5}
    +        curve Ninja3["Ninja"] {3, 2, 1, 5, 4}
    +      
    +        showLegend true
    +        ticks 3
    +        max 8
    +        min 0
    +        graticule circle
    +    
    + +
    +      ---
    +      config:
    +        radar:
    +          axisScaleFactor: 0.25
    +          axisLabelFactor: 0.95
    +      ---
    +      radar-beta 
    +        title DevOps Radar
    +        axis f["Feature Velocity"], s["Stability"]
    +        axis r["Resilience"], e["Efficiency"]
    +        axis c["Cost"], d["DevSecOps"]
    +      
    +        curve app1["App1"]{
    +          f 5, s 4.5, r 3.8, d 4.2, e 4.5, c 3.5
    +        }
    +        curve app2["App2"]{4, 3, 4, 3, 3, 4}, app3["App3"]{3, 2, 4, 3, 2, 3}
    +        curve app4["App4"]{2, 1, 3.2, 2.5, 1, 2}
    +      
    +        showLegend true
    +        ticks 3
    +        max 5
    +        graticule polygon
    +    
    + +
    +      %%{init: {'theme': 'forest'} }%%
    +      radar-beta 
    +        title Forest theme
    +        axis Agility, Speed, Strength
    +        axis Stam["Stamina"] , Intel["Intelligence"]
    +      
    +        curve Ninja1["Naruto"]{
    +            Agility 2, Speed 2,
    +            Strength 3, Stam 5,
    +            Intel 0
    +        }
    +        curve Ninja2["Sasuke"]{2, 3, 4, 1, 5}
    +        curve Ninja3["Ninja"] {3, 2, 1, 5, 4}
    +    
    + +
    +      %%{init: {'theme': 'dark'} }%%
    +      radar-beta 
    +        title Dark theme
    +        axis Agility, Speed, Strength
    +        axis Stam["Stamina"] , Intel["Intelligence"]
    +      
    +        curve Ninja1["Naruto"]{
    +            Agility 2, Speed 2,
    +            Strength 3, Stam 5,
    +            Intel 0
    +        }
    +        curve Ninja2["Sasuke"]{2, 3, 4, 1, 5}
    +        curve Ninja3["Ninja"] {3, 2, 1, 5, 4}
    +    
    +
    +      %%{init: {'theme': 'base', 'themeVariables': {'cScale0': '#ff0000', 'cScale1': '#00ff00', 'cScale2': '#0000ff'}} }%%
    +      radar-beta 
    +        title Custom colors
    +        axis Agility, Speed, Strength
    +        axis Stam["Stamina"] , Intel["Intelligence"]
    +
    +        curve Ninja1["Naruto"]{
    +            Agility 2, Speed 2,
    +            Strength 3, Stam 5,
    +            Intel 0
    +        }
    +        curve Ninja2["Sasuke"]{2, 3, 4, 1, 5}
    +        curve Ninja3["Ninja"] {3, 2, 1, 5, 4}
    +    
    +
    + + + + +