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:'01/22/2024',y:[29.84,29.91,29.76,29.77]},{ x:'01/23/2024',y:[29.74,29.75,29.70,29.70]},{ x:'01/24/2024',y:[29.71,29.71,29.66,29.66]},{ x:'01/25/2024',y:[29.73,29.78,29.65,29.77]},{ x:'01/26/2024',y:[29.68,29.74,29.65,29.65]},{ x:'01/29/2024',y:[29.70,29.81,29.70,29.81]},{ x:'01/30/2024',y:[29.71,29.77,29.68,29.68]},{ x:'01/31/2024',y:[29.61,29.61,29.47,29.48]},{ x:'02/01/2024',y:[29.48,29.48,29.27,29.41]},{ x:'02/02/2024',y:[29.65,29.84,29.65,29.84]},{ x:'02/05/2024',y:[29.78,29.83,29.75,29.83]},{ x:'02/15/2024',y:[30.09,30.70,30.00,30.70]},{ x:'02/16/2024',y:[30.76,30.77,30.69,30.69]},{ x:'02/19/2024',y:[30.75,30.75,30.73,30.74]},{ x:'02/20/2024',y:[30.78,30.80,30.74,30.80]},{ x:'02/21/2024',y:[30.65,30.76,30.64,30.70]},{ x:'02/22/2024',y:[31.02,31.02,30.80,30.94]},{ x:'02/23/2024',y:[31.12,31.26,31.12,31.21]},{ x:'02/26/2024',y:[31.18,31.30,31.18,31.30]},{ x:'02/27/2024',y:[31.40,31.40,31.12,31.20]},{ x:'02/29/2024',y:[31.06,31.16,31.06,31.16]},{ x:'03/01/2024',y:[31.20,31.24,31.06,31.06]},{ x:'03/04/2024',y:[31.40,31.70,31.40,31.70]},{ x:'03/05/2024',y:[31.84,31.98,31.83,31.92]},{ x:'03/06/2024',y:[31.65,32.00,31.65,31.93]},{ x:'03/07/2024',y:[32.34,32.50,32.31,32.40]},{ x:'03/08/2024',y:[32.95,33.04,32.62,32.81]},{ x:'03/11/2024',y:[32.70,32.70,32.50,32.65]},{ x:'03/12/2024',y:[32.70,32.94,32.70,32.94]},{ x:'03/13/2024',y:[33.10,33.23,33.04,33.05]},{ x:'03/14/2024',y:[32.90,32.98,32.72,32.88]},{ x:'03/15/2024',y:[32.74,32.74,32.65,32.70]},{ x:'03/18/2024',y:[32.61,32.80,32.60,32.80]},{ x:'03/19/2024',y:[32.72,32.79,32.72,32.78]},{ x:'03/20/2024',y:[33.00,33.05,32.86,32.86]},{ x:'03/21/2024',y:[33.39,33.90,33.39,33.89]},{ x:'03/22/2024',y:[33.89,34.00,33.71,33.95]},{ x:'03/25/2024',y:[33.86,33.91,33.86,33.86]},{ x:'03/26/2024',y:[34.00,34.07,33.75,33.83]},{ x:'03/27/2024',y:[34.00,34.16,33.99,34.16]},{ x:'03/28/2024',y:[34.16,34.20,34.00,34.19]},{ x:'03/29/2024',y:[34.19,34.50,34.19,34.50]},{ x:'04/01/2024',y:[34.61,34.68,34.35,34.43]},{ x:'04/02/2024',y:[34.73,34.88,34.66,34.88]},{ x:'04/03/2024',y:[34.59,34.74,34.53,34.70]},{ x:'04/08/2024',y:[34.76,34.85,34.74,34.80]},{ x:'04/09/2024',y:[34.90,34.95,34.86,34.95]},{ x:'04/10/2024',y:[34.95,35.00,34.95,34.97]},{ x:'04/11/2024',y:[34.75,34.83,34.75,34.83]},{ x:'04/12/2024',y:[34.83,34.94,34.81,34.81]},{ x:'04/15/2024',y:[34.30,34.30,33.97,34.23]},{ x:'04/16/2024',y:[33.39,33.39,33.09,33.19]},{ x:'04/17/2024',y:[33.07,33.42,33.07,33.42]},{ x:'04/18/2024',y:[33.34,33.65,33.34,33.65]},{ x:'04/19/2024',y:[33.00,33.00,32.06,32.58]},{ x:'04/22/2024',y:[32.31,32.45,32.02,32.13]},{ x:'04/23/2024',y:[32.14,32.26,32.08,32.26]},{ x:'04/24/2024',y:[32.50,33.18,32.50,33.12]},{ x:'04/25/2024',y:[32.93,32.93,32.80,32.83]},{ x:'04/26/2024',y:[33.13,33.14,33.04,33.14]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00735 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());