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:[35.52,35.77,35.52,35.60]},{ x:'01/23/2024',y:[35.60,35.62,35.25,35.27]},{ x:'01/24/2024',y:[34.98,35.10,34.67,35.05]},{ x:'01/25/2024',y:[35.07,35.08,34.75,34.75]},{ x:'01/26/2024',y:[34.80,34.88,34.78,34.84]},{ x:'01/29/2024',y:[34.84,35.27,34.84,35.27]},{ x:'01/30/2024',y:[35.30,35.52,35.30,35.38]},{ x:'01/31/2024',y:[35.10,35.30,34.96,35.30]},{ x:'02/01/2024',y:[35.30,35.67,35.30,35.67]},{ x:'02/02/2024',y:[35.67,35.77,35.67,35.69]},{ x:'02/05/2024',y:[35.80,35.80,35.57,35.70]},{ x:'02/15/2024',y:[35.70,35.95,35.61,35.70]},{ x:'02/16/2024',y:[35.70,35.92,35.70,35.87]},{ x:'02/19/2024',y:[35.95,35.95,35.68,35.79]},{ x:'02/20/2024',y:[35.87,35.89,35.78,35.83]},{ x:'02/21/2024',y:[35.92,36.17,35.92,36.06]},{ x:'02/22/2024',y:[36.05,36.09,35.87,35.92]},{ x:'02/23/2024',y:[36.14,36.44,36.14,36.37]},{ x:'02/26/2024',y:[36.40,36.46,36.19,36.20]},{ x:'02/27/2024',y:[36.20,36.23,36.09,36.11]},{ x:'02/29/2024',y:[35.90,36.00,35.78,35.86]},{ x:'03/01/2024',y:[35.90,36.14,35.90,36.13]},{ x:'03/04/2024',y:[36.30,36.44,36.30,36.37]},{ x:'03/05/2024',y:[36.37,36.37,36.17,36.20]},{ x:'03/06/2024',y:[36.19,36.40,36.15,36.27]},{ x:'03/07/2024',y:[36.31,36.57,36.31,36.50]},{ x:'03/08/2024',y:[36.50,36.80,36.50,36.77]},{ x:'03/11/2024',y:[36.77,36.77,36.54,36.58]},{ x:'03/12/2024',y:[36.58,36.58,36.34,36.38]},{ x:'03/13/2024',y:[36.48,36.48,36.30,36.33]},{ x:'03/14/2024',y:[36.00,36.14,35.74,36.14]},{ x:'03/15/2024',y:[36.12,36.12,35.93,35.93]},{ x:'03/18/2024',y:[35.93,36.28,35.93,36.11]},{ x:'03/19/2024',y:[36.11,36.12,35.95,35.99]},{ x:'03/20/2024',y:[35.87,36.01,35.85,35.89]},{ x:'03/21/2024',y:[35.93,36.38,35.93,36.35]},{ x:'03/22/2024',y:[36.76,36.76,36.01,36.39]},{ x:'03/25/2024',y:[36.59,36.59,36.18,36.26]},{ x:'03/26/2024',y:[36.26,36.42,36.26,36.37]},{ x:'03/27/2024',y:[36.37,36.45,36.07,36.37]},{ x:'03/28/2024',y:[36.40,36.61,36.28,36.57]},{ x:'03/29/2024',y:[36.57,36.71,36.57,36.66]},{ x:'04/01/2024',y:[36.70,36.93,36.70,36.93]},{ x:'04/02/2024',y:[36.93,36.93,36.78,36.79]},{ x:'04/03/2024',y:[36.93,36.93,36.67,36.75]},{ x:'04/08/2024',y:[36.90,37.15,36.90,37.15]},{ x:'04/09/2024',y:[37.27,37.51,37.27,37.50]},{ x:'04/10/2024',y:[37.50,37.50,37.33,37.35]},{ x:'04/11/2024',y:[37.47,37.47,37.33,37.33]},{ x:'04/12/2024',y:[37.40,37.54,37.30,37.51]},{ x:'04/15/2024',y:[37.48,37.48,36.68,36.83]},{ x:'04/16/2024',y:[36.66,36.66,36.33,36.42]},{ x:'04/17/2024',y:[36.42,36.59,36.42,36.50]},{ x:'04/18/2024',y:[36.50,36.50,36.36,36.39]},{ x:'04/19/2024',y:[36.35,36.35,35.48,35.77]},{ x:'04/22/2024',y:[36.10,36.80,36.10,36.67]},{ x:'04/23/2024',y:[36.83,37.17,36.83,37.01]},{ x:'04/24/2024',y:[37.01,37.14,36.97,37.14]},{ x:'04/25/2024',y:[37.14,37.14,36.90,36.99]},{ x:'04/26/2024',y:[36.99,37.30,36.99,37.18]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00652 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());