206 lines
5.9 KiB
JavaScript
206 lines
5.9 KiB
JavaScript
var colors = ["#39afd1"],
|
|
dataColors = $("#basic-radialbar").data("colors");
|
|
dataColors && (colors = dataColors.split(","));
|
|
var options = {
|
|
chart: { height: 320, type: "radialBar" },
|
|
plotOptions: { radialBar: { hollow: { size: "70%" } } },
|
|
colors: colors,
|
|
series: [70],
|
|
labels: ["CRICKET"],
|
|
},
|
|
chart = new ApexCharts(document.querySelector("#basic-radialbar"), options);
|
|
chart.render();
|
|
colors = ["#6c757d", "#ffbc00", "#0166D2", "#0acf97"];
|
|
(dataColors = $("#multiple-radialbar").data("colors")) &&
|
|
(colors = dataColors.split(","));
|
|
options = {
|
|
chart: { height: 320, type: "radialBar" },
|
|
plotOptions: { circle: { dataLabels: { showOn: "hover" } } },
|
|
colors: colors,
|
|
series: [44, 55, 67, 83],
|
|
labels: ["Apples", "Oranges", "Bananas", "Berries"],
|
|
responsive: [{ breakpoint: 380, options: { chart: { height: 260 } } }],
|
|
};
|
|
(chart = new ApexCharts(
|
|
document.querySelector("#multiple-radialbar"),
|
|
options
|
|
)).render();
|
|
colors = ["#0acf97", "#0166D2"];
|
|
(dataColors = $("#circle-angle-radial").data("colors")) &&
|
|
(colors = dataColors.split(","));
|
|
options = {
|
|
chart: { height: 380, type: "radialBar" },
|
|
plotOptions: {
|
|
radialBar: {
|
|
offsetY: -30,
|
|
startAngle: 0,
|
|
endAngle: 270,
|
|
hollow: {
|
|
margin: 5,
|
|
size: "30%",
|
|
background: "transparent",
|
|
image: void 0,
|
|
},
|
|
dataLabels: { name: { show: !1 }, value: { show: !1 } },
|
|
},
|
|
},
|
|
colors: colors,
|
|
series: [76, 67, 61, 90],
|
|
labels: ["Vimeo", "Messenger", "Facebook", "LinkedIn"],
|
|
legend: {
|
|
show: !0,
|
|
floating: !0,
|
|
fontSize: "13px",
|
|
position: "left",
|
|
offsetX: 10,
|
|
offsetY: 10,
|
|
labels: { useSeriesColors: !0 },
|
|
markers: { size: 0 },
|
|
formatter: function (o, a) {
|
|
return o + ": " + a.w.globals.series[a.seriesIndex];
|
|
},
|
|
itemMargin: { horizontal: 1 },
|
|
},
|
|
responsive: [{ breakpoint: 480, options: { legend: { show: !1 } } }],
|
|
};
|
|
(chart = new ApexCharts(
|
|
document.querySelector("#circle-angle-radial"),
|
|
options
|
|
)).render();
|
|
options = {
|
|
chart: { height: 360, type: "radialBar" },
|
|
fill: {
|
|
type: "image",
|
|
image: { src: ["assets/images/small/small-2.jpg"] },
|
|
},
|
|
plotOptions: { radialBar: { hollow: { size: "70%" } } },
|
|
series: [70],
|
|
stroke: { lineCap: "round" },
|
|
labels: ["Volatility"],
|
|
responsive: [{ breakpoint: 380, options: { chart: { height: 280 } } }],
|
|
};
|
|
(chart = new ApexCharts(
|
|
document.querySelector("#image-radial"),
|
|
options
|
|
)).render();
|
|
colors = ["#0166D2"];
|
|
(dataColors = $("#stroked-guage-radial").data("colors")) &&
|
|
(colors = dataColors.split(","));
|
|
options = {
|
|
chart: { height: 380, type: "radialBar" },
|
|
plotOptions: {
|
|
radialBar: {
|
|
startAngle: -135,
|
|
endAngle: 135,
|
|
dataLabels: {
|
|
name: { fontSize: "16px", color: void 0, offsetY: 120 },
|
|
value: {
|
|
offsetY: 76,
|
|
fontSize: "22px",
|
|
color: void 0,
|
|
formatter: function (o) {
|
|
return o + "%";
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
fill: {
|
|
gradient: {
|
|
enabled: !0,
|
|
shade: "dark",
|
|
shadeIntensity: 0.15,
|
|
inverseColors: !1,
|
|
opacityFrom: 1,
|
|
opacityTo: 1,
|
|
stops: [0, 50, 65, 91],
|
|
},
|
|
},
|
|
stroke: { dashArray: 4 },
|
|
colors: colors,
|
|
series: [67],
|
|
labels: ["Median Ratio"],
|
|
responsive: [{ breakpoint: 380, options: { chart: { height: 280 } } }],
|
|
};
|
|
(chart = new ApexCharts(
|
|
document.querySelector("#stroked-guage-radial"),
|
|
options
|
|
)).render();
|
|
colors = ["#8f75da", "#0166D2"];
|
|
(dataColors = $("#gradient-chart").data("colors")) &&
|
|
(colors = dataColors.split(","));
|
|
options = {
|
|
chart: { height: 330, type: "radialBar", toolbar: { show: !0 } },
|
|
plotOptions: {
|
|
radialBar: {
|
|
startAngle: -135,
|
|
endAngle: 225,
|
|
hollow: {
|
|
margin: 0,
|
|
size: "70%",
|
|
background: "#fff",
|
|
image: void 0,
|
|
imageOffsetX: 0,
|
|
imageOffsetY: 0,
|
|
position: "front",
|
|
dropShadow: {
|
|
enabled: !0,
|
|
top: 3,
|
|
left: 0,
|
|
blur: 4,
|
|
opacity: 0.24,
|
|
},
|
|
},
|
|
track: {
|
|
background: "#fff",
|
|
strokeWidth: "67%",
|
|
margin: 0,
|
|
dropShadow: {
|
|
enabled: !0,
|
|
top: -3,
|
|
left: 0,
|
|
blur: 4,
|
|
opacity: 0.35,
|
|
},
|
|
},
|
|
dataLabels: {
|
|
showOn: "always",
|
|
name: {
|
|
offsetY: -10,
|
|
show: !0,
|
|
color: "#888",
|
|
fontSize: "17px",
|
|
},
|
|
value: {
|
|
formatter: function (o) {
|
|
return parseInt(o);
|
|
},
|
|
color: "#111",
|
|
fontSize: "36px",
|
|
show: !0,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
fill: {
|
|
type: "gradient",
|
|
gradient: {
|
|
shade: "dark",
|
|
type: "horizontal",
|
|
shadeIntensity: 0.5,
|
|
gradientToColors: colors,
|
|
inverseColors: !0,
|
|
opacityFrom: 1,
|
|
opacityTo: 1,
|
|
stops: [0, 100],
|
|
},
|
|
},
|
|
series: [75],
|
|
stroke: { lineCap: "round" },
|
|
labels: ["Percent"],
|
|
};
|
|
(chart = new ApexCharts(
|
|
document.querySelector("#gradient-chart"),
|
|
options
|
|
)).render();
|