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:'02/17/2023',y:[39.91,39.98,39.91,39.98]},{ x:'02/20/2023',y:[40.00,40.00,39.96,39.97]},{ x:'02/21/2023',y:[39.97,40.01,39.96,39.96]},{ x:'02/22/2023',y:[40.15,40.16,40.15,40.15]},{ x:'02/23/2023',y:[40.16,40.16,39.95,39.95]},{ x:'02/24/2023',y:[40.05,40.12,40.04,40.12]},{ x:'03/01/2023',y:[40.20,40.34,40.20,40.29]},{ x:'03/02/2023',y:[40.20,40.34,40.20,40.33]},{ x:'03/03/2023',y:[40.28,40.33,40.28,40.32]},{ x:'03/06/2023',y:[40.29,40.29,40.22,40.24]},{ x:'03/07/2023',y:[40.33,40.33,40.30,40.30]},{ x:'03/08/2023',y:[40.31,40.53,40.31,40.48]},{ x:'03/09/2023',y:[40.51,40.57,40.51,40.56]},{ x:'03/10/2023',y:[40.65,40.70,40.65,40.68]},{ x:'03/13/2023',y:[40.55,40.55,40.42,40.47]},{ x:'03/14/2023',y:[40.40,40.41,40.37,40.37]},{ x:'03/15/2023',y:[40.38,40.43,40.38,40.43]},{ x:'03/16/2023',y:[40.50,40.61,40.50,40.61]},{ x:'03/17/2023',y:[40.49,40.49,40.48,40.48]},{ x:'03/20/2023',y:[40.46,40.50,40.46,40.47]},{ x:'03/21/2023',y:[40.42,40.51,40.42,40.51]},{ x:'03/22/2023',y:[40.40,40.41,40.40,40.41]},{ x:'03/23/2023',y:[40.22,40.22,40.14,40.19]},{ x:'03/24/2023',y:[40.25,40.25,40.21,40.23]},{ x:'03/27/2023',y:[40.28,40.28,40.24,40.25]},{ x:'03/28/2023',y:[40.15,40.21,40.15,40.21]},{ x:'03/29/2023',y:[40.30,40.30,40.30,40.30]},{ x:'03/30/2023',y:[40.36,40.38,40.35,40.35]},{ x:'03/31/2023',y:[40.25,40.31,40.24,40.30]},{ x:'04/06/2023',y:[40.47,40.48,40.47,40.48]},{ x:'04/07/2023',y:[40.42,40.42,40.41,40.42]},{ x:'04/10/2023',y:[40.38,40.39,40.38,40.38]},{ x:'04/11/2023',y:[40.39,40.42,40.39,40.42]},{ x:'04/12/2023',y:[40.43,40.46,40.43,40.44]},{ x:'04/13/2023',y:[40.45,40.46,40.45,40.45]},{ x:'04/14/2023',y:[40.45,40.45,40.35,40.36]},{ x:'04/17/2023',y:[40.48,40.49,40.43,40.44]},{ x:'04/18/2023',y:[40.42,40.46,40.42,40.44]},{ x:'04/19/2023',y:[40.44,40.49,40.44,40.49]},{ x:'04/20/2023',y:[40.55,40.62,40.55,40.62]},{ x:'04/21/2023',y:[40.57,40.63,40.57,40.63]},{ x:'04/24/2023',y:[40.64,40.65,40.64,40.65]},{ x:'04/25/2023',y:[40.67,40.71,40.67,40.71]},{ x:'04/26/2023',y:[40.75,40.76,40.73,40.76]},{ x:'04/27/2023',y:[40.77,40.77,40.74,40.75]},{ x:'04/28/2023',y:[40.75,40.75,40.71,40.72]},{ x:'05/02/2023',y:[40.86,40.86,40.82,40.83]},{ x:'05/03/2023',y:[40.87,40.87,40.80,40.84]},{ x:'05/04/2023',y:[40.71,40.76,40.71,40.76]},{ x:'05/05/2023',y:[40.69,40.73,40.69,40.73]},{ x:'05/08/2023',y:[40.71,40.73,40.71,40.73]},{ x:'05/09/2023',y:[40.75,40.76,40.75,40.75]},{ x:'05/10/2023',y:[40.83,40.84,40.83,40.84]},{ x:'05/11/2023',y:[40.85,40.86,40.84,40.85]},{ x:'05/12/2023',y:[40.93,40.93,40.91,40.91]},{ x:'05/15/2023',y:[40.90,40.97,40.90,40.97]},{ x:'05/16/2023',y:[40.97,40.97,40.92,40.92]},{ x:'05/17/2023',y:[40.97,41.00,40.94,40.98]},{ x:'05/18/2023',y:[40.98,40.98,40.88,40.88]},{ x:'05/19/2023',y:[40.89,40.89,40.85,40.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00865b 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());