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:'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]},{ x:'07/01/2024',y:[19.55,19.70,19.54,19.59]},{ x:'07/02/2024',y:[19.54,19.60,19.36,19.48]},{ x:'07/03/2024',y:[19.53,19.77,19.53,19.76]},{ x:'07/04/2024',y:[19.95,20.20,19.95,20.16]},{ x:'07/05/2024',y:[20.16,20.23,20.10,20.17]},{ x:'07/12/2024',y:[20.63,20.69,20.47,20.47]},{ x:'07/15/2024',y:[20.59,20.62,20.49,20.50]},{ x:'07/16/2024',y:[20.42,20.51,20.29,20.36]},{ x:'07/17/2024',y:[20.30,20.31,20.08,20.12]},{ x:'07/18/2024',y:[19.85,19.89,19.68,19.81]},{ x:'07/19/2024',y:[19.78,19.78,19.38,19.41]},{ x:'07/22/2024',y:[19.40,19.40,18.79,18.94]},{ x:'07/23/2024',y:[19.08,19.33,19.08,19.33]},{ x:'07/26/2024',y:[18.81,18.82,18.61,18.78]},{ x:'07/29/2024',y:[18.99,19.09,18.85,18.88]},{ x:'07/30/2024',y:[18.77,18.93,18.63,18.92]},{ x:'07/31/2024',y:[18.92,19.03,18.80,19.03]},{ x:'08/01/2024',y:[19.19,19.34,19.16,19.28]},{ x:'08/02/2024',y:[18.98,18.98,18.43,18.45]},{ x:'08/05/2024',y:[18.08,18.08,16.89,16.90]},{ x:'08/06/2024',y:[17.24,17.80,16.99,17.55]},{ x:'08/07/2024',y:[17.74,18.15,17.74,18.11]},{ x:'08/08/2024',y:[17.84,18.01,17.76,17.87]},{ x:'08/09/2024',y:[18.32,18.52,18.06,18.37]},{ x:'08/12/2024',y:[18.47,18.71,18.47,18.60]},{ x:'08/13/2024',y:[18.71,18.73,18.64,18.67]} ] }], 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());