@tekkare/auriga 0.2.9 → 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
|
@@ -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
|
-
|
|
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: {
|
|
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) {
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
<div class="oip_row">
|
|
3
3
|
<div v-if="tabs[0] !== undefined" ref="el" class="wrapper">
|
|
4
4
|
<div class="toggle_radio">
|
|
5
|
-
<div
|
|
5
|
+
<div
|
|
6
|
+
v-for="(tab, index) in tabs"
|
|
7
|
+
:key="index"
|
|
8
|
+
@click="updateButton(index)"
|
|
9
|
+
>
|
|
6
10
|
<input
|
|
7
11
|
:id="sliderId + tabs[0].label + index"
|
|
8
12
|
:key="index"
|
|
@@ -10,7 +14,6 @@
|
|
|
10
14
|
class="toggle_option"
|
|
11
15
|
name="toggle_option"
|
|
12
16
|
:checked="index === activeTab"
|
|
13
|
-
@click="updateButton(index)"
|
|
14
17
|
/>
|
|
15
18
|
<label
|
|
16
19
|
:key="index"
|