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/19/2024',y:[17.03,17.10,16.99,17.03]},{ x:'03/20/2024',y:[17.10,17.15,17.00,17.01]},{ x:'03/21/2024',y:[17.14,17.35,17.14,17.35]},{ x:'03/22/2024',y:[17.33,17.35,17.28,17.33]},{ x:'03/25/2024',y:[17.33,17.37,17.30,17.36]},{ x:'03/26/2024',y:[17.37,17.49,17.21,17.31]},{ x:'03/27/2024',y:[17.29,17.33,17.25,17.30]},{ x:'03/28/2024',y:[17.35,17.35,17.13,17.23]},{ x:'03/29/2024',y:[17.26,17.36,17.25,17.34]},{ x:'04/01/2024',y:[17.34,17.42,17.33,17.33]},{ x:'04/02/2024',y:[17.38,17.43,17.38,17.40]},{ x:'04/03/2024',y:[17.36,17.36,17.23,17.29]},{ x:'04/08/2024',y:[17.30,17.38,17.27,17.34]},{ x:'04/09/2024',y:[17.42,17.63,17.42,17.62]},{ x:'04/10/2024',y:[17.62,17.71,17.61,17.68]},{ x:'04/11/2024',y:[17.65,17.65,17.55,17.62]},{ x:'04/12/2024',y:[17.62,17.63,17.54,17.58]},{ x:'04/15/2024',y:[17.50,17.50,17.37,17.40]},{ x:'04/16/2024',y:[17.28,17.28,16.89,16.97]},{ x:'04/17/2024',y:[16.92,17.12,16.92,17.11]},{ x:'04/18/2024',y:[17.00,17.00,16.77,16.99]},{ x:'04/19/2024',y:[16.70,16.70,16.10,16.28]},{ x:'04/22/2024',y:[16.27,16.30,16.16,16.22]},{ x:'04/23/2024',y:[16.30,16.39,16.29,16.35]},{ x:'04/24/2024',y:[16.48,16.75,16.48,16.74]},{ x:'04/25/2024',y:[16.62,16.62,16.41,16.43]},{ x:'04/26/2024',y:[16.56,16.77,16.56,16.70]},{ x:'04/29/2024',y:[16.79,17.05,16.79,17.03]},{ x:'04/30/2024',y:[17.05,17.08,17.02,17.03]},{ x:'05/02/2024',y:[16.92,16.92,16.80,16.86]},{ x:'05/03/2024',y:[17.04,17.12,16.93,16.94]},{ x:'05/06/2024',y:[17.12,17.22,17.09,17.18]},{ x:'05/07/2024',y:[17.22,17.26,17.17,17.25]},{ x:'05/08/2024',y:[17.25,17.27,17.19,17.26]},{ x:'05/09/2024',y:[17.26,17.32,17.24,17.24]},{ x:'05/10/2024',y:[17.24,17.41,17.24,17.40]},{ x:'05/13/2024',y:[17.46,17.52,17.42,17.46]},{ x:'05/14/2024',y:[17.49,17.56,17.46,17.56]},{ x:'05/15/2024',y:[17.56,17.90,17.56,17.76]},{ x:'05/16/2024',y:[17.85,18.06,17.85,17.89]},{ x:'05/17/2024',y:[17.86,17.90,17.82,17.90]},{ x:'05/20/2024',y:[17.90,17.96,17.81,17.91]},{ x:'05/21/2024',y:[17.91,17.91,17.71,17.80]},{ x:'05/22/2024',y:[17.79,18.04,17.79,18.03]},{ x:'05/23/2024',y:[18.02,18.09,18.00,18.09]},{ x:'05/24/2024',y:[18.05,18.06,18.00,18.04]},{ x:'06/11/2024',y:[18.38,18.39,18.26,18.28]},{ x:'06/12/2024',y:[18.30,18.53,18.30,18.50]},{ x:'06/13/2024',y:[18.58,18.93,18.58,18.80]},{ x:'06/14/2024',y:[18.80,18.96,18.77,18.96]},{ x:'06/17/2024',y:[18.95,18.98,18.88,18.94]},{ x:'06/18/2024',y:[19.00,19.24,19.00,19.23]},{ x:'06/19/2024',y:[19.25,19.69,19.25,19.65]},{ x:'06/20/2024',y:[19.66,19.81,19.65,19.81]},{ x:'06/21/2024',y:[19.67,19.77,19.58,19.73]},{ x:'06/24/2024',y:[19.63,19.63,19.37,19.38]},{ x:'06/25/2024',y:[19.23,19.39,19.18,19.39]},{ x:'06/26/2024',y:[19.40,19.55,19.39,19.45]},{ x:'06/27/2024',y:[19.34,19.38,19.25,19.36]},{ x:'06/28/2024',y:[19.40,19.61,19.37,19.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00912 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());