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/24/2024',y:[31.09,31.09,30.95,31.02]},{ x:'04/25/2024',y:[30.97,30.97,30.90,30.92]},{ x:'04/26/2024',y:[30.77,30.80,30.73,30.80]},{ x:'04/29/2024',y:[30.99,31.04,30.98,31.00]},{ x:'04/30/2024',y:[31.09,31.14,31.06,31.14]},{ x:'05/02/2024',y:[31.01,31.08,31.00,31.06]},{ x:'05/03/2024',y:[31.08,31.08,31.00,31.05]},{ x:'05/06/2024',y:[31.19,31.25,31.18,31.24]},{ x:'05/07/2024',y:[31.34,31.49,31.34,31.48]},{ x:'05/08/2024',y:[31.56,31.58,31.50,31.51]},{ x:'05/09/2024',y:[31.35,31.40,31.32,31.36]},{ x:'05/10/2024',y:[31.52,31.54,31.49,31.50]},{ x:'05/13/2024',y:[31.45,31.45,31.43,31.44]},{ x:'05/14/2024',y:[31.44,31.45,31.40,31.42]},{ x:'05/15/2024',y:[31.48,31.48,31.41,31.42]},{ x:'05/16/2024',y:[31.72,31.77,31.67,31.72]},{ x:'05/17/2024',y:[31.67,31.73,31.66,31.70]},{ x:'05/20/2024',y:[31.60,31.62,31.57,31.59]},{ x:'05/21/2024',y:[31.55,31.57,31.54,31.57]},{ x:'05/22/2024',y:[31.63,31.65,31.60,31.61]},{ x:'05/23/2024',y:[31.63,31.63,31.58,31.58]},{ x:'05/24/2024',y:[31.50,31.50,31.46,31.49]},{ x:'06/11/2024',y:[31.56,31.72,31.56,31.70]},{ x:'06/12/2024',y:[31.87,31.87,31.83,31.86]},{ x:'06/13/2024',y:[32.00,32.05,31.97,32.02]},{ x:'06/14/2024',y:[32.32,32.33,32.26,32.26]},{ x:'06/17/2024',y:[32.32,32.33,32.27,32.28]},{ x:'06/18/2024',y:[32.17,32.23,32.16,32.21]},{ x:'06/19/2024',y:[32.36,32.38,32.35,32.37]},{ x:'06/20/2024',y:[32.34,32.34,32.27,32.29]},{ x:'06/21/2024',y:[32.16,32.16,32.12,32.13]},{ x:'06/24/2024',y:[32.19,32.23,32.17,32.21]},{ x:'06/25/2024',y:[32.23,32.34,32.23,32.33]},{ x:'06/26/2024',y:[32.35,32.35,32.23,32.29]},{ x:'06/27/2024',y:[32.02,32.04,31.95,32.03]},{ x:'06/28/2024',y:[32.09,32.13,32.01,32.03]},{ x:'07/01/2024',y:[31.65,31.67,31.60,31.67]},{ x:'07/02/2024',y:[31.46,31.61,31.46,31.61]},{ x:'07/03/2024',y:[31.71,31.84,31.68,31.84]},{ x:'07/04/2024',y:[32.03,32.03,31.90,31.91]},{ x:'07/05/2024',y:[31.85,31.94,31.85,31.94]},{ x:'07/12/2024',y:[32.36,32.47,32.36,32.46]},{ x:'07/15/2024',y:[32.50,32.52,32.45,32.52]},{ x:'07/16/2024',y:[32.20,32.28,31.98,32.09]},{ x:'07/17/2024',y:[32.33,32.34,32.29,32.32]},{ x:'07/18/2024',y:[32.30,32.30,32.22,32.27]},{ x:'07/19/2024',y:[32.22,32.27,32.22,32.25]},{ x:'07/22/2024',y:[32.25,32.30,32.20,32.30]},{ x:'07/23/2024',y:[32.20,32.20,32.14,32.17]},{ x:'07/26/2024',y:[32.10,32.10,31.96,31.98]},{ x:'07/29/2024',y:[32.17,32.31,32.17,32.24]},{ x:'07/30/2024',y:[32.35,32.35,32.28,32.30]},{ x:'07/31/2024',y:[32.30,32.39,32.30,32.36]},{ x:'08/01/2024',y:[32.46,32.59,32.46,32.52]},{ x:'08/02/2024',y:[32.69,32.81,32.68,32.68]},{ x:'08/05/2024',y:[33.09,33.28,32.99,33.10]},{ x:'08/06/2024',y:[32.93,32.98,32.77,32.94]},{ x:'08/07/2024',y:[32.79,32.79,32.70,32.75]},{ x:'08/08/2024',y:[32.54,32.56,32.44,32.45]},{ x:'08/09/2024',y:[32.38,32.38,32.24,32.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00788b 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());