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:[36.35,36.44,36.35,36.40]},{ x:'03/27/2024',y:[36.36,36.36,36.36,36.36]},{ x:'03/28/2024',y:[36.62,36.64,36.62,36.62]},{ x:'03/29/2024',y:[36.62,36.62,36.62,36.62]},{ x:'04/01/2024',y:[36.56,36.65,36.56,36.59]},{ x:'04/02/2024',y:[36.28,36.31,36.28,36.28]},{ x:'04/03/2024',y:[36.13,36.20,36.13,36.14]},{ x:'04/08/2024',y:[35.93,36.05,35.93,35.93]},{ x:'04/09/2024',y:[35.96,36.12,35.94,35.98]},{ x:'04/10/2024',y:[36.16,36.20,36.16,36.20]},{ x:'04/11/2024',y:[35.61,35.80,35.61,35.78]},{ x:'04/12/2024',y:[35.65,35.65,35.56,35.56]},{ x:'04/15/2024',y:[35.68,35.68,35.68,35.68]},{ x:'04/16/2024',y:[35.38,35.41,35.38,35.41]},{ x:'04/17/2024',y:[35.14,35.14,35.11,35.11]},{ x:'04/18/2024',y:[35.30,35.30,35.30,35.30]},{ x:'04/19/2024',y:[35.68,35.68,35.55,35.55]},{ x:'04/22/2024',y:[35.38,35.38,35.38,35.38]},{ x:'04/23/2024',y:[35.61,35.61,35.61,35.61]},{ x:'04/24/2024',y:[35.50,35.50,35.50,35.50]},{ x:'04/25/2024',y:[35.42,35.45,35.42,35.45]},{ x:'04/26/2024',y:[35.24,35.28,35.24,35.28]},{ x:'04/29/2024',y:[35.61,35.61,35.51,35.51]},{ x:'04/30/2024',y:[35.75,35.75,35.75,35.75]},{ x:'05/02/2024',y:[35.64,35.71,35.64,35.69]},{ x:'05/03/2024',y:[35.78,35.78,35.78,35.78]},{ x:'05/06/2024',y:[35.98,36.02,35.98,36.02]},{ x:'05/07/2024',y:[36.20,36.28,36.20,36.26]},{ x:'05/08/2024',y:[36.39,36.41,36.39,36.41]},{ x:'05/09/2024',y:[36.22,36.22,36.19,36.19]},{ x:'05/10/2024',y:[36.37,36.44,36.37,36.44]},{ x:'05/13/2024',y:[36.24,36.24,36.18,36.18]},{ x:'05/14/2024',y:[36.22,36.22,36.22,36.22]},{ x:'05/15/2024',y:[36.24,36.29,36.24,36.29]},{ x:'05/16/2024',y:[36.71,36.71,36.65,36.65]},{ x:'05/17/2024',y:[36.63,36.66,36.63,36.66]},{ x:'05/20/2024',y:[36.54,36.54,36.54,36.54]},{ x:'05/21/2024',y:[36.54,36.54,36.54,36.54]},{ x:'05/22/2024',y:[36.62,36.69,36.62,36.69]},{ x:'05/23/2024',y:[36.66,36.66,36.64,36.64]},{ x:'05/24/2024',y:[36.50,36.50,36.50,36.50]},{ x:'06/11/2024',y:[36.66,36.69,36.64,36.66]},{ x:'06/12/2024',y:[36.81,36.81,36.73,36.73]},{ x:'06/13/2024',y:[36.91,37.07,36.91,37.03]},{ x:'06/14/2024',y:[37.34,37.34,37.30,37.30]},{ x:'06/17/2024',y:[37.30,37.30,37.15,37.19]},{ x:'06/18/2024',y:[37.08,37.09,37.07,37.07]},{ x:'06/19/2024',y:[37.26,37.26,37.24,37.26]},{ x:'06/20/2024',y:[36.77,36.77,36.74,36.76]},{ x:'06/21/2024',y:[36.58,36.62,36.58,36.60]},{ x:'06/24/2024',y:[36.65,36.65,36.65,36.65]},{ x:'06/25/2024',y:[36.88,36.88,36.81,36.85]},{ x:'06/26/2024',y:[36.74,36.82,36.74,36.82]},{ x:'06/27/2024',y:[36.53,36.56,36.52,36.56]},{ x:'06/28/2024',y:[36.60,36.61,36.57,36.57]},{ x:'07/01/2024',y:[36.13,36.16,36.12,36.16]},{ x:'07/02/2024',y:[36.10,36.17,36.10,36.17]},{ x:'07/03/2024',y:[36.46,36.56,36.46,36.52]},{ x:'07/04/2024',y:[36.71,36.73,36.65,36.65]},{ x:'07/05/2024',y:[36.60,36.60,36.58,36.59]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00778b 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());