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/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]},{ x:'04/29/2024',y:[33.29,33.44,33.29,33.34]},{ x:'04/30/2024',y:[33.41,33.58,33.30,33.30]},{ x:'05/02/2024',y:[33.25,33.25,33.23,33.23]},{ x:'05/03/2024',y:[33.35,33.57,33.35,33.40]},{ x:'05/06/2024',y:[33.82,33.88,33.77,33.77]},{ x:'05/07/2024',y:[34.18,34.26,33.87,34.26]},{ x:'05/08/2024',y:[34.30,34.47,34.26,34.47]},{ x:'05/09/2024',y:[34.40,34.48,34.37,34.37]},{ x:'05/10/2024',y:[34.37,34.38,34.29,34.38]},{ x:'05/13/2024',y:[34.39,34.43,34.38,34.43]},{ x:'05/14/2024',y:[34.55,34.60,34.49,34.60]},{ x:'05/15/2024',y:[34.98,35.00,34.94,34.94]},{ x:'05/16/2024',y:[35.57,35.57,35.20,35.23]},{ x:'05/17/2024',y:[35.20,35.20,35.10,35.13]},{ x:'05/20/2024',y:[35.25,35.25,34.99,35.18]},{ x:'05/21/2024',y:[35.11,35.21,35.06,35.07]},{ x:'05/22/2024',y:[35.15,35.60,35.15,35.60]},{ x:'05/23/2024',y:[35.61,35.93,35.61,35.93]},{ x:'05/24/2024',y:[35.60,35.77,35.60,35.70]},{ x:'06/11/2024',y:[35.92,36.01,35.91,35.93]},{ x:'06/12/2024',y:[36.10,36.40,36.10,36.38]},{ x:'06/13/2024',y:[37.00,37.24,37.00,37.24]},{ x:'06/14/2024',y:[37.24,37.45,37.11,37.45]},{ x:'06/17/2024',y:[37.45,37.57,37.41,37.47]},{ x:'06/18/2024',y:[37.79,37.90,37.79,37.90]},{ x:'06/19/2024',y:[38.25,39.02,38.25,39.02]},{ x:'06/20/2024',y:[39.02,39.38,39.02,39.38]},{ x:'06/21/2024',y:[38.87,39.05,38.79,38.91]},{ x:'06/24/2024',y:[38.64,38.64,38.07,38.17]},{ x:'06/25/2024',y:[37.96,38.23,37.68,38.23]},{ x:'06/26/2024',y:[38.41,38.52,38.34,38.52]},{ x:'06/27/2024',y:[38.33,38.59,38.33,38.54]},{ x:'06/28/2024',y:[38.61,38.89,38.60,38.89]},{ x:'07/01/2024',y:[38.85,39.02,38.85,38.89]},{ x:'07/02/2024',y:[38.78,38.91,38.46,38.52]} ] }], 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());