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:[31.70,31.81,31.63,31.78]},{ x:'05/02/2024',y:[31.75,31.75,31.36,31.39]},{ x:'05/03/2024',y:[31.71,31.96,31.61,31.61]},{ x:'05/06/2024',y:[31.96,31.98,31.74,31.75]},{ x:'05/07/2024',y:[31.88,31.98,31.70,31.82]},{ x:'05/08/2024',y:[31.82,31.95,31.71,31.92]},{ x:'05/09/2024',y:[31.98,32.08,31.92,31.92]},{ x:'05/10/2024',y:[32.08,32.13,31.91,32.08]},{ x:'05/13/2024',y:[32.49,32.49,32.27,32.36]},{ x:'05/14/2024',y:[32.36,32.69,32.36,32.69]},{ x:'05/15/2024',y:[32.81,33.23,32.81,32.93]},{ x:'05/16/2024',y:[32.20,32.43,32.12,32.16]},{ x:'05/17/2024',y:[32.18,32.18,32.02,32.04]},{ x:'05/20/2024',y:[32.08,32.29,31.88,32.06]},{ x:'05/21/2024',y:[32.12,32.12,31.94,32.06]},{ x:'05/22/2024',y:[32.14,32.48,32.14,32.46]},{ x:'05/23/2024',y:[32.59,32.75,32.45,32.72]},{ x:'05/24/2024',y:[32.40,32.73,32.40,32.64]},{ x:'06/11/2024',y:[33.44,33.44,33.21,33.25]},{ x:'06/12/2024',y:[33.29,33.63,33.29,33.61]},{ x:'06/13/2024',y:[34.04,34.37,34.04,34.28]},{ x:'06/14/2024',y:[34.28,34.54,34.20,34.54]},{ x:'06/17/2024',y:[34.54,34.60,34.40,34.49]},{ x:'06/18/2024',y:[34.77,35.03,34.77,35.00]},{ x:'06/19/2024',y:[35.29,35.95,35.29,35.89]},{ x:'06/20/2024',y:[35.90,36.10,35.86,36.10]},{ x:'06/21/2024',y:[35.93,36.11,35.70,36.00]},{ x:'06/24/2024',y:[35.72,35.72,35.22,35.29]},{ x:'06/25/2024',y:[35.05,35.22,34.73,35.22]},{ x:'06/26/2024',y:[35.44,35.65,35.30,35.48]},{ x:'06/27/2024',y:[35.28,35.40,35.15,35.40]},{ x:'06/28/2024',y:[35.41,35.78,35.40,35.71]},{ x:'07/01/2024',y:[35.70,36.00,35.69,35.70]},{ x:'07/02/2024',y:[35.70,35.70,35.30,35.51]},{ x:'07/03/2024',y:[36.00,36.00,35.68,35.82]},{ x:'07/04/2024',y:[36.26,36.45,36.22,36.42]},{ x:'07/05/2024',y:[36.42,36.45,36.27,36.32]},{ x:'07/12/2024',y:[37.83,37.83,37.18,37.22]},{ x:'07/15/2024',y:[37.32,37.40,37.16,37.17]},{ x:'07/16/2024',y:[37.28,37.64,37.17,37.33]},{ x:'07/17/2024',y:[37.30,37.30,36.84,36.93]},{ x:'07/18/2024',y:[36.27,36.36,35.95,36.17]},{ x:'07/19/2024',y:[36.07,36.07,35.41,35.43]},{ x:'07/22/2024',y:[35.30,35.30,34.20,34.43]},{ x:'07/23/2024',y:[35.05,35.23,34.95,35.23]},{ x:'07/26/2024',y:[34.14,34.41,33.88,34.39]},{ x:'07/29/2024',y:[34.77,34.89,34.41,34.49]},{ x:'07/30/2024',y:[34.25,34.63,33.91,34.63]},{ x:'07/31/2024',y:[34.49,34.69,34.18,34.62]},{ x:'08/01/2024',y:[35.55,35.55,34.86,34.98]},{ x:'08/02/2024',y:[34.50,34.50,33.29,33.29]},{ x:'08/05/2024',y:[31.94,31.94,30.57,30.84]},{ x:'08/06/2024',y:[31.93,32.28,30.90,31.99]},{ x:'08/07/2024',y:[32.57,33.24,32.44,33.14]},{ x:'08/08/2024',y:[32.80,33.00,32.47,32.70]},{ x:'08/09/2024',y:[33.56,33.82,33.39,33.53]},{ x:'08/12/2024',y:[34.00,34.35,34.00,34.12]},{ x:'08/13/2024',y:[34.40,34.40,34.17,34.24]},{ x:'08/14/2024',y:[34.61,34.82,34.56,34.69]},{ x:'08/15/2024',y:[34.70,34.73,34.48,34.48]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00690 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());