Bubweb
  • 🌟News and Releases
    • New Templates
  • 🚀HELP GUIDE
    • Hire me
    • Getting Started
      • New Responsive Properties
      • Stripe
      • Google Login
      • Charts
        • Area
        • Column
        • Pie
        • Dumbbell
        • Polar Area
      • PWA
  • 🎨Templates
    • OpenAI & Claude
      • AI Agent Tools: OpenAI & Claude
    • Stable Diffusion SaaS Image Generator
      • Getting Started
      • Styles & Config
    • OpenAI & DALL-E
      • OpenAI SaaS - Tools Generate
        • 0️⃣New Responsive Properties
        • 1️⃣Configure Role & ID attribute
        • 2️⃣Configure OpenAI & DALL-E
        • 3️⃣Configure Stripe
        • 4️⃣Deploy to Live
        • Styles
        • PWA
    • Ecommerce
      • Ecommerce PWA - Stripe
        • New Responsive Properties
        • Company Role
        • Styles
        • Google Login
        • Stripe
        • PWA
        • 👁️‍🗨️Preview
    • CRM
      • CRM & Dashboard PWA - Lite
    • Dashboard Starter Kit
      • Global
        • 1️⃣New Responsive Properties
        • 2️⃣Configure Role
        • 3️⃣Styles
        • 4️⃣Charts
        • 5️⃣PWA
    • Social Network
      • Social Network Hub
        • 1️⃣New Responsive Properties
        • 2️⃣Configure Role
        • 3️⃣Styles
        • 4️⃣PWA
  • 🔌PLUGINS
    • Jotform
      • Getting Started
    • Microsoft OneDrive
      • Getting Started
Powered by GitBook
On this page
  • Chart Polar Area
  • Example of a static polar area chart
  1. HELP GUIDE
  2. Getting Started
  3. Charts

Polar Area

Setting up the chart

PreviousDumbbellNextPWA

Last updated 1 year ago

Chart Polar Area

Example of a static polar area chart

All I did was make the hexadecimal colors and the chart list dynamic

<!DOCTYPE html>
<html>
  <head>
    <script>
      window.onload = function () {
        var options = {
          colors: ["#4F46E5", "#10b981", "#ff9800", "#ff5724", "#0ea5e9"],
          series: [14, 23, 21, 17, 15, 10, 12, 17, 21],
          labels: [
            "iPhone 13 Pro",
            "MacBook Air",
            "Bose QuietComfort 45 Headphones",
            "Samsung QLED 8K TV",
            "GoPro Hero 10",
            "Xbox Series X",
            "Amazon Echo Show 10",
            "Fitbit Versa 3",
            "Canon EOS 90D Camera"
          ],
          chart: {
            type: "polarArea",
            height: 390
          },
          stroke: {
            colors: ["#fff"]
          },
          fill: {
            opacity: 0.8
          },
          responsive: [
            {
              breakpoint: 480,
              options: {
                chart: {
                  width: 200
                },
                legend: {
                  position: "bottom"
                }
              }
            }
          ]
        };

        var chart = new ApexCharts(document.querySelector("#chart"), options);
        chart.render();
      };
    </script>
  </head>
  <body>
    <div id="chart" style="width: 95%;"></div>
    <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
  </body>
</html>

Content to show per list item

Series

 series: [14, 23, 21]
 labels: ["iPhone 13 Pro", "MacBook Air", "Bose QuietComfort 45 Headphones"]
🚀