@tekkare/auriga 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.10"
7
+ "version": "0.2.11"
8
8
  }
@@ -115,7 +115,9 @@ export default defineComponent({
115
115
  const seriesData = props.series;
116
116
  const hasPercentages = props.withPercentages;
117
117
  const compactMode = props.compactValues;
118
- const hideLegend = props.hideLegend;
118
+ if (props.hideLegend) {
119
+ props.options["legend"] = { show: false };
120
+ }
119
121
  props.options["grid"] = {
120
122
  borderColor: "#EAEAF5",
121
123
  strokeDashArray: 7,
@@ -325,9 +327,6 @@ export default defineComponent({
325
327
  ...defaultDataLabelFormatter
326
328
  };
327
329
  }
328
- if (props.hideLegend) {
329
- props.options["legend"] = { show: false };
330
- }
331
330
  if (props.tooltipOptions) {
332
331
  props.options["tooltip"] = props.tooltipOptions;
333
332
  }
@@ -401,9 +400,6 @@ export default defineComponent({
401
400
  ...defaultDataLabelFormatter
402
401
  };
403
402
  }
404
- if (props.hideLegend) {
405
- props.options["legend"] = { show: false };
406
- }
407
403
  if (props.tooltipOptions) {
408
404
  props.options["tooltip"] = props.tooltipOptions;
409
405
  }
@@ -625,12 +621,15 @@ export default defineComponent({
625
621
  }
626
622
  }
627
623
  };
628
- } else if (props.type === "pie") {
624
+ } else if (props.type === "pie" || props.type === "donut") {
629
625
  props.options["labels"] = props.categories;
630
626
  let defaultDataLabelsConfig = {
631
627
  offset: -50,
632
628
  enabled: true,
633
- style: { fontSize: "14px", colors: ["#FFFFFF"] },
629
+ style: {
630
+ fontSize: "14px",
631
+ colors: props.type === "donut" ? ["#3E3F5E"] : ["#FFFFFF"]
632
+ },
634
633
  dropShadow: { enabled: false }
635
634
  };
636
635
  if (props.options.dataLabels && props.options.dataLabels.formatter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",