function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'03/26/2024',y:[38.20,38.28,38.11,38.18]},{ x:'03/27/2024',y:[38.30,38.57,38.30,38.57]},{ x:'03/28/2024',y:[38.32,38.38,38.17,38.17]},{ x:'03/29/2024',y:[38.21,38.41,38.21,38.35]},{ x:'04/01/2024',y:[38.22,38.22,37.60,37.83]},{ x:'04/02/2024',y:[37.84,37.85,37.51,37.56]},{ x:'04/03/2024',y:[37.54,37.66,37.37,37.59]},{ x:'04/08/2024',y:[37.78,37.96,37.71,37.79]},{ x:'04/09/2024',y:[37.88,38.15,37.88,38.13]},{ x:'04/10/2024',y:[38.11,38.18,38.05,38.10]},{ x:'04/11/2024',y:[37.93,38.07,37.84,38.05]},{ x:'04/12/2024',y:[38.23,38.34,38.16,38.21]},{ x:'04/15/2024',y:[37.90,38.09,37.86,38.08]},{ x:'04/16/2024',y:[37.64,37.66,37.28,37.45]},{ x:'04/17/2024',y:[37.00,37.25,36.95,37.15]},{ x:'04/18/2024',y:[36.97,37.25,36.92,37.14]},{ x:'04/19/2024',y:[36.51,36.51,35.96,36.43]},{ x:'04/22/2024',y:[36.71,36.85,36.60,36.64]},{ x:'04/23/2024',y:[36.94,36.96,36.75,36.85]},{ x:'04/24/2024',y:[37.31,37.52,37.30,37.52]},{ x:'04/25/2024',y:[37.19,37.19,36.95,36.96]},{ x:'04/26/2024',y:[36.96,37.29,36.85,37.26]},{ x:'04/29/2024',y:[37.82,38.07,37.65,37.76]},{ x:'04/30/2024',y:[37.83,38.00,37.80,37.81]},{ x:'05/02/2024',y:[37.78,37.89,37.71,37.89]},{ x:'05/03/2024',y:[37.49,37.52,37.30,37.38]},{ x:'05/06/2024',y:[37.87,38.04,37.87,37.94]},{ x:'05/07/2024',y:[37.87,38.01,37.80,37.93]},{ x:'05/08/2024',y:[37.74,37.74,37.50,37.62]},{ x:'05/09/2024',y:[37.62,37.83,37.62,37.65]},{ x:'05/10/2024',y:[38.06,38.06,37.63,37.63]},{ x:'05/13/2024',y:[37.65,37.77,37.55,37.62]},{ x:'05/14/2024',y:[37.83,37.83,37.50,37.58]},{ x:'05/15/2024',y:[37.90,37.91,37.73,37.73]},{ x:'05/16/2024',y:[37.62,37.72,37.57,37.69]},{ x:'05/17/2024',y:[37.76,37.96,37.76,37.90]},{ x:'05/20/2024',y:[38.32,38.45,38.14,38.14]},{ x:'05/21/2024',y:[38.27,38.36,38.17,38.20]},{ x:'05/22/2024',y:[38.01,38.03,37.92,37.94]},{ x:'05/23/2024',y:[37.95,38.14,37.92,38.12]},{ x:'05/24/2024',y:[37.94,38.05,37.86,37.96]},{ x:'06/11/2024',y:[38.74,38.74,38.49,38.49]},{ x:'06/12/2024',y:[38.19,38.21,38.11,38.16]},{ x:'06/13/2024',y:[38.08,38.10,37.84,37.96]},{ x:'06/14/2024',y:[37.88,38.20,37.84,38.05]},{ x:'06/17/2024',y:[37.32,37.52,37.30,37.38]},{ x:'06/18/2024',y:[37.50,37.66,37.50,37.56]},{ x:'06/19/2024',y:[37.79,37.85,37.60,37.64]},{ x:'06/20/2024',y:[37.60,37.75,37.48,37.73]},{ x:'06/21/2024',y:[37.84,37.85,37.73,37.78]},{ x:'06/24/2024',y:[37.89,38.01,37.69,38.00]},{ x:'06/25/2024',y:[38.23,38.48,38.19,38.39]},{ x:'06/26/2024',y:[38.54,38.72,38.54,38.61]},{ x:'06/27/2024',y:[38.52,38.56,38.44,38.53]},{ x:'06/28/2024',y:[38.68,38.92,38.68,38.78]},{ x:'07/01/2024',y:[39.05,39.05,38.90,38.93]},{ x:'07/02/2024',y:[39.26,39.51,39.16,39.45]},{ x:'07/03/2024',y:[39.50,39.67,39.45,39.67]},{ x:'07/04/2024',y:[39.86,40.08,39.82,40.04]},{ x:'07/05/2024',y:[40.10,40.12,39.83,39.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());