This project's purpose is used to display ASX trading data with candlestick diagram with amChart JavaScript version package.
Add the following files:
stylesheet: candlestick.css
JavaScript: charts.js | animated.js | candlestick.js
</environment>
<link rel="stylesheet" href="~/css/site.css" />
<link rel="stylesheet" href="~/css/candlestick.css" /> // /css/candlestick.css
</head>
<body>
<header>
... ... ...
<!--<script src="~/js/site.js" asp-append-version="true"></script>-->
<script src="~/js/core.js" asp-append-version="true"></script>
<script src="~/js/charts.js" asp-append-version="true"></script> // /js/core.js
<script src="~/themes/animated.js" asp-append-version="true"></script> // /themes/animated.js
<script src="~/js/candlestick.js" asp-append-version="true"></script> // /js/candlestick.js
Add <div id="chartdiv"></div>
under /Views/index.cshtml for the candelstick chart to display.
[HttpGet("{code}/{offset}/{rows}")]
public List<MarketChartPrice> Get(string code, int offset, int rows)
{
return db.GetMarketChartPricesAsync(code, offset, rows);
}