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:[26.20,26.35,26.14,26.18]},{ x:'01/23/2024',y:[26.27,26.30,26.17,26.26]},{ x:'01/24/2024',y:[26.28,26.34,26.27,26.29]},{ x:'01/25/2024',y:[26.43,26.48,26.37,26.44]},{ x:'01/26/2024',y:[26.41,26.46,26.39,26.41]},{ x:'01/29/2024',y:[26.42,26.59,26.42,26.57]},{ x:'01/30/2024',y:[26.58,26.73,26.54,26.70]},{ x:'01/31/2024',y:[26.58,26.60,26.41,26.41]},{ x:'02/01/2024',y:[26.41,26.41,26.20,26.30]},{ x:'02/02/2024',y:[26.49,26.51,26.40,26.51]},{ x:'02/05/2024',y:[26.51,26.51,26.36,26.45]},{ x:'02/15/2024',y:[26.98,27.43,26.98,27.35]},{ x:'02/16/2024',y:[27.50,27.50,27.31,27.40]},{ x:'02/19/2024',y:[27.37,27.49,27.36,27.47]},{ x:'02/20/2024',y:[27.54,27.89,27.54,27.87]},{ x:'02/21/2024',y:[27.75,27.96,27.75,27.85]},{ x:'02/22/2024',y:[27.95,28.31,27.95,28.29]},{ x:'02/23/2024',y:[28.41,28.74,28.41,28.72]},{ x:'02/26/2024',y:[28.70,28.91,28.49,28.84]},{ x:'02/27/2024',y:[28.88,29.19,28.68,28.84]},{ x:'02/29/2024',y:[28.80,29.00,28.79,28.99]},{ x:'03/01/2024',y:[29.05,29.16,28.83,28.86]},{ x:'03/04/2024',y:[29.10,29.51,29.10,29.48]},{ x:'03/05/2024',y:[29.52,29.72,29.46,29.72]},{ x:'03/06/2024',y:[29.52,30.06,29.51,29.96]},{ x:'03/07/2024',y:[30.20,30.60,30.20,30.41]},{ x:'03/08/2024',y:[30.70,31.11,30.16,30.41]},{ x:'03/11/2024',y:[30.26,30.53,30.21,30.28]},{ x:'03/12/2024',y:[30.20,30.52,30.20,30.41]},{ x:'03/13/2024',y:[30.50,30.80,30.30,30.34]},{ x:'03/14/2024',y:[30.33,30.35,30.00,30.06]},{ x:'03/15/2024',y:[29.77,29.92,29.74,29.78]},{ x:'03/18/2024',y:[29.78,30.14,29.78,30.13]},{ x:'03/19/2024',y:[30.00,30.08,29.85,30.04]},{ x:'03/20/2024',y:[30.08,30.15,29.70,29.70]},{ x:'03/21/2024',y:[30.12,30.33,30.08,30.28]},{ x:'03/22/2024',y:[30.24,30.31,30.00,30.19]},{ x:'03/25/2024',y:[30.19,30.31,30.18,30.18]},{ x:'03/26/2024',y:[30.26,30.60,30.00,30.17]},{ x:'03/27/2024',y:[30.20,30.42,30.07,30.36]},{ x:'03/28/2024',y:[30.26,30.35,30.00,30.23]},{ x:'03/29/2024',y:[30.23,30.51,30.23,30.42]},{ x:'04/01/2024',y:[30.51,30.68,30.35,30.35]},{ x:'04/02/2024',y:[30.53,30.69,30.53,30.62]},{ x:'04/03/2024',y:[30.46,30.62,30.36,30.53]},{ x:'04/08/2024',y:[30.55,30.62,30.48,30.51]},{ x:'04/09/2024',y:[30.70,31.10,30.65,31.05]},{ x:'04/10/2024',y:[31.07,31.35,31.05,31.25]},{ x:'04/11/2024',y:[31.22,31.23,31.07,31.18]},{ x:'04/12/2024',y:[31.18,31.23,31.10,31.11]},{ x:'04/15/2024',y:[30.90,30.90,30.45,30.47]},{ x:'04/16/2024',y:[30.11,30.11,29.38,29.50]},{ x:'04/17/2024',y:[29.60,29.75,29.57,29.61]},{ x:'04/18/2024',y:[29.47,29.89,29.30,29.88]},{ x:'04/19/2024',y:[29.25,29.25,28.16,28.40]},{ x:'04/22/2024',y:[28.30,28.55,28.12,28.19]},{ x:'04/23/2024',y:[28.56,28.56,28.26,28.44]},{ x:'04/24/2024',y:[28.92,29.40,28.92,29.37]},{ x:'04/25/2024',y:[29.07,29.07,28.78,28.78]},{ x:'04/26/2024',y:[29.20,29.45,29.18,29.23]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00728 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());