import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeStyle } from "vue";
import EchartsContainer from "../../../NComponents/echartsContainer/EchartsContainer.mjs";
const __default__ = defineComponent({ name: "EPieCircle" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    themeColor: {
      type: Object,
      required: false
    },
    themeSetting: {
      type: Object,
      required: false
    },
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const option = computed(() => {
      return props.chartConfig.option;
    });
    const style = computed(() => {
      return {
        height: props.chartConfig.attr.h,
        width: props.chartConfig.attr.w
      };
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", null, [
        createVNode(EchartsContainer, {
          options: unref(option),
          style: normalizeStyle(unref(style)),
          theme: __props.themeColor
        }, null, 8, ["options", "style", "theme"])
      ]);
    };
  }
});
export { _sfc_main as default };
