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/18/2024',y:[40.14,40.18,40.05,40.09]},{ x:'03/19/2024',y:[40.10,40.25,40.10,40.24]},{ x:'03/20/2024',y:[40.31,40.41,40.31,40.40]},{ x:'03/21/2024',y:[40.33,40.36,40.27,40.34]},{ x:'03/22/2024',y:[40.55,40.82,40.54,40.81]},{ x:'03/25/2024',y:[41.01,41.02,40.67,40.78]},{ x:'03/26/2024',y:[40.70,40.74,40.57,40.72]},{ x:'03/27/2024',y:[40.68,40.75,40.67,40.74]},{ x:'03/28/2024',y:[40.89,40.96,40.89,40.90]},{ x:'03/29/2024',y:[41.08,41.10,41.02,41.06]},{ x:'04/01/2024',y:[41.09,41.14,41.03,41.14]},{ x:'04/02/2024',y:[40.78,40.88,40.77,40.79]},{ x:'04/03/2024',y:[40.65,40.68,40.54,40.56]},{ x:'04/08/2024',y:[40.36,40.38,40.32,40.36]},{ x:'04/09/2024',y:[40.35,40.60,40.35,40.54]},{ x:'04/10/2024',y:[40.67,40.67,40.59,40.62]},{ x:'04/11/2024',y:[40.15,40.24,40.01,40.24]},{ x:'04/12/2024',y:[40.14,40.17,40.07,40.13]},{ x:'04/15/2024',y:[40.18,40.25,40.15,40.16]},{ x:'04/16/2024',y:[39.86,39.97,39.86,39.91]},{ x:'04/17/2024',y:[39.79,39.80,39.62,39.65]},{ x:'04/18/2024',y:[39.36,39.45,39.34,39.35]},{ x:'04/19/2024',y:[39.41,39.88,39.35,39.62]},{ x:'04/22/2024',y:[39.33,39.43,39.32,39.41]},{ x:'04/23/2024',y:[39.66,39.71,39.63,39.69]},{ x:'04/24/2024',y:[39.70,39.70,39.55,39.65]},{ x:'04/25/2024',y:[39.56,39.56,39.46,39.47]},{ x:'04/26/2024',y:[39.32,39.34,39.28,39.32]},{ x:'04/29/2024',y:[39.61,39.72,39.60,39.64]},{ x:'04/30/2024',y:[39.69,39.83,39.69,39.82]},{ x:'05/02/2024',y:[39.68,39.77,39.67,39.77]},{ x:'05/03/2024',y:[39.73,39.76,39.70,39.71]},{ x:'05/06/2024',y:[39.96,40.01,39.90,39.99]},{ x:'05/07/2024',y:[39.99,40.35,39.99,40.34]},{ x:'05/08/2024',y:[40.33,40.40,40.30,40.33]},{ x:'05/09/2024',y:[40.11,40.16,40.10,40.14]},{ x:'05/10/2024',y:[40.33,40.40,40.32,40.32]},{ x:'05/13/2024',y:[40.19,40.22,40.16,40.19]},{ x:'05/14/2024',y:[40.19,40.19,40.13,40.15]},{ x:'05/15/2024',y:[40.22,40.25,40.14,40.15]},{ x:'05/16/2024',y:[40.43,40.55,40.43,40.51]},{ x:'05/17/2024',y:[40.42,40.53,40.42,40.48]},{ x:'05/20/2024',y:[40.45,40.45,40.37,40.37]},{ x:'05/21/2024',y:[40.37,40.40,40.36,40.37]},{ x:'05/22/2024',y:[40.40,40.54,40.38,40.41]},{ x:'05/23/2024',y:[40.44,40.44,40.36,40.37]},{ x:'05/24/2024',y:[40.24,40.27,40.17,40.18]},{ x:'06/11/2024',y:[40.50,40.59,40.49,40.55]},{ x:'06/12/2024',y:[40.70,40.74,40.70,40.73]},{ x:'06/13/2024',y:[40.95,41.00,40.91,40.97]},{ x:'06/14/2024',y:[41.16,41.25,41.16,41.16]},{ x:'06/17/2024',y:[41.14,41.18,41.10,41.10]},{ x:'06/18/2024',y:[41.10,41.12,41.01,41.05]},{ x:'06/19/2024',y:[41.25,41.27,41.21,41.26]},{ x:'06/20/2024',y:[41.26,41.26,41.12,41.12]},{ x:'06/21/2024',y:[41.05,41.05,40.98,41.00]},{ x:'06/24/2024',y:[41.00,41.12,41.00,41.07]},{ x:'06/25/2024',y:[41.28,41.32,41.25,41.31]},{ x:'06/26/2024',y:[41.25,41.29,41.15,41.24]},{ x:'06/27/2024',y:[41.07,41.07,40.91,40.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00740b 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());