{
  "name": "dnxte/next-pie-chart",
  "title": "Pie Chart",
  "titles": "Pie Charts",
  "moduleIcon": "dnxte/next-pie-chart",
  "category": "module",
  "folder": "divi-essential",
  "attributes": {
    "module": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "meta": {
          "adminLabel": {
            "desktop": {
              "value": "Pie Chart"
            }
          }
        }
      },
      "styleProps": {
        "spacing": {
          "selector": "{{selector}} .dnxte-next-pie-chart-container",
          "important": true
        },
        "border": {
          "selector": "{{selector}} .dnxte-next-pie-chart-container",
          "important": true
        },
        "boxShadow": {
          "selector": "{{selector}} .dnxte-next-pie-chart-container",
          "important": true
        }
      }
    },
    "title": {
      "type": "object",
      "selector": "{{selector}} .next_pie_chart__title",
      "tagName": "h2",
      "attributes": {
        "class": "next_pie_chart__title"
      },
      "inlineEditor": "text",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Revenue Breakdown"
          }
        }
      }
    },
    "description": {
      "type": "object",
      "selector": "{{selector}} .next_pie_chart__description",
      "tagName": "div",
      "attributes": {
        "class": "next_pie_chart__description"
      },
      "inlineEditor": "richText",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Your chart description here."
          }
        }
      }
    },
    "chartSettings": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "advanced": {
          "chartVariant": {
            "desktop": {
              "value": "pie"
            }
          },
          "cutout": {
            "desktop": {
              "value": "0"
            }
          },
          "rotation": {
            "desktop": {
              "value": "0"
            }
          },
          "circumference": {
            "desktop": {
              "value": "360"
            }
          },
          "showLegend": {
            "desktop": {
              "value": "on"
            }
          },
          "legendPosition": {
            "desktop": {
              "value": "bottom"
            }
          },
          "showTooltip": {
            "desktop": {
              "value": "on"
            }
          },
          "animationEnabled": {
            "desktop": {
              "value": "on"
            }
          },
          "animationDuration": {
            "desktop": {
              "value": "1000"
            }
          },
          "hoverEffect": {
            "desktop": {
              "value": "grow"
            }
          },
          "chartData": {
            "desktop": {
              "value": "[{\"label\":\"Product Sales\",\"value\":42,\"backgroundColor\":\"#6366F1\",\"hoverColor\":\"#4F46E5\"},{\"label\":\"Services\",\"value\":28,\"backgroundColor\":\"#2DD4BF\",\"hoverColor\":\"#14B8A6\"},{\"label\":\"Licensing\",\"value\":18,\"backgroundColor\":\"#F97316\",\"hoverColor\":\"#EA580C\"},{\"label\":\"Support\",\"value\":12,\"backgroundColor\":\"#F43F5E\",\"hoverColor\":\"#E11D48\"}]"
            }
          }
        }
      }
    }
  },
  "customCssFields": {
    "title": {
      "subName": "title",
      "selectorSuffix": "next_pie_chart__title"
    },
    "description": {
      "subName": "description",
      "selectorSuffix": "next_pie_chart__description"
    }
  }
}
