78 lines
1.7 KiB
HTML
78 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Basic Area</title>
|
|
|
|
|
|
<link href="../../assets/styles.css" rel="stylesheet" />
|
|
|
|
<style>
|
|
#chart {
|
|
max-width: 650px;
|
|
margin: 35px auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="chart">
|
|
|
|
</div>
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/apexcharts@latest"></script>
|
|
<script src="../../assets/stock-prices.js"></script>
|
|
|
|
<script>
|
|
var options = {
|
|
chart: {
|
|
height: 350,
|
|
type: 'area',
|
|
zoom: {
|
|
enabled: false
|
|
}
|
|
},
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
stroke: {
|
|
curve: 'straight'
|
|
},
|
|
series: [{
|
|
name: "STOCK ABC",
|
|
data: series.monthDataSeries1.prices
|
|
}],
|
|
title: {
|
|
text: 'Fundamental Analysis of Stocks',
|
|
align: 'left'
|
|
},
|
|
subtitle: {
|
|
text: 'Price Movements',
|
|
align: 'left'
|
|
},
|
|
labels: series.monthDataSeries1.dates,
|
|
xaxis: {
|
|
type: 'datetime',
|
|
},
|
|
yaxis: {
|
|
opposite: true
|
|
},
|
|
legend: {
|
|
horizontalAlign: 'left'
|
|
}
|
|
}
|
|
|
|
var chart = new ApexCharts(
|
|
document.querySelector("#chart"),
|
|
options
|
|
);
|
|
|
|
chart.render();
|
|
</script>
|
|
</body>
|
|
|
|
</html> |