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/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]},{ x:'07/12/2024',y:[37.16,37.29,37.16,37.29]},{ x:'07/15/2024',y:[37.29,37.29,37.26,37.26]},{ x:'07/16/2024',y:[37.32,37.33,37.32,37.33]},{ x:'07/17/2024',y:[37.64,37.64,37.60,37.60]},{ x:'07/18/2024',y:[37.60,37.61,37.60,37.61]},{ x:'07/19/2024',y:[37.61,37.61,37.53,37.53]},{ x:'07/22/2024',y:[37.59,37.62,37.59,37.62]},{ x:'07/23/2024',y:[37.55,37.55,37.54,37.54]},{ x:'07/26/2024',y:[37.27,37.27,37.22,37.22]},{ x:'07/29/2024',y:[37.49,37.59,37.49,37.54]},{ x:'07/30/2024',y:[37.61,37.61,37.59,37.59]},{ x:'07/31/2024',y:[37.71,37.71,37.68,37.68]},{ x:'08/01/2024',y:[37.94,37.94,37.87,37.87]},{ x:'08/02/2024',y:[38.19,38.19,38.11,38.11]},{ x:'08/05/2024',y:[38.53,38.53,38.31,38.31]},{ x:'08/06/2024',y:[38.28,38.28,37.92,38.00]},{ x:'08/07/2024',y:[37.70,37.75,37.70,37.75]},{ x:'08/08/2024',y:[37.67,37.67,37.45,37.45]},{ x:'08/09/2024',y:[37.19,37.19,37.18,37.18]},{ x:'08/12/2024',y:[37.46,37.58,37.46,37.50]},{ x:'08/13/2024',y:[37.65,37.65,37.57,37.57]},{ x:'08/14/2024',y:[37.76,37.83,37.76,37.83]},{ x:'08/15/2024',y:[38.20,38.25,38.15,38.15]} ] }], 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());