MIF_E31230680/public/assetdashboard/vendor/apex/crm/compare-sales.js

68 lines
969 B
JavaScript

var options = {
chart: {
height: 240,
type: 'area',
toolbar: {
show: false,
},
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'smooth',
width: 3
},
series: [{
name: 'Sales',
data: [200, 450, 200, 400]
}],
grid: {
row: {
colors: ['transparent'], // takes an array which will be repeated on columns
opacity: 0.5,
},
xaxis: {
lines: {
show: false
}
},
yaxis: {
lines: {
show: false
}
},
},
xaxis: {
categories: ['Pizzas', 'Burgers', 'Sandwich', 'Coffee'],
// labels: {
// show: false
// }
},
colors: ['#01902d', '#333333'],
markers: {
size: 5,
opacity: 0.2,
colors: ["#01902d"],
strokeColor: "#ffffff",
strokeWidth: 2,
hover: {
size: 7,
}
},
tooltip: {
y: {
formatter: function(val) {
return "$" + val + 'k'
}
}
},
}
var chart = new ApexCharts(
document.querySelector("#compare-sales"),
options
);
chart.render();