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/23/2024',y:[38.48,38.69,38.42,38.68]},{ x:'01/24/2024',y:[38.68,38.81,38.68,38.80]},{ x:'01/25/2024',y:[39.28,39.50,39.28,39.44]},{ x:'01/26/2024',y:[38.71,38.71,38.20,38.28]},{ x:'01/29/2024',y:[38.00,38.18,37.99,38.17]},{ x:'01/30/2024',y:[38.54,38.58,38.43,38.58]},{ x:'01/31/2024',y:[37.39,37.51,37.34,37.51]},{ x:'02/01/2024',y:[37.50,37.58,37.44,37.49]},{ x:'02/02/2024',y:[37.67,37.73,37.65,37.70]},{ x:'02/05/2024',y:[38.16,38.26,38.07,38.26]},{ x:'02/15/2024',y:[39.75,40.46,39.75,40.25]},{ x:'02/16/2024',y:[40.30,40.41,40.29,40.32]},{ x:'02/19/2024',y:[40.05,40.15,39.86,40.13]},{ x:'02/20/2024',y:[40.13,40.14,39.90,39.98]},{ x:'02/21/2024',y:[39.41,39.41,39.29,39.30]},{ x:'02/22/2024',y:[40.38,40.87,40.37,40.83]},{ x:'02/23/2024',y:[41.46,41.47,41.24,41.31]},{ x:'02/26/2024',y:[40.90,40.92,40.74,40.88]},{ x:'02/27/2024',y:[41.25,41.38,41.25,41.35]},{ x:'02/29/2024',y:[40.89,41.02,40.76,40.76]},{ x:'03/01/2024',y:[41.80,42.26,41.80,42.24]},{ x:'03/04/2024',y:[43.73,44.02,43.70,44.00]},{ x:'03/05/2024',y:[44.20,44.34,44.07,44.25]},{ x:'03/06/2024',y:[43.33,43.78,43.33,43.75]},{ x:'03/07/2024',y:[44.56,44.56,44.18,44.33]},{ x:'03/08/2024',y:[45.45,45.66,45.24,45.31]},{ x:'03/11/2024',y:[43.54,43.77,43.41,43.62]},{ x:'03/12/2024',y:[43.41,43.64,43.41,43.64]},{ x:'03/13/2024',y:[44.09,44.25,43.97,44.24]},{ x:'03/14/2024',y:[43.25,43.37,43.15,43.35]},{ x:'03/15/2024',y:[42.55,42.64,42.45,42.47]},{ x:'03/18/2024',y:[42.46,42.78,42.46,42.77]},{ x:'03/19/2024',y:[42.05,42.32,42.00,42.28]},{ x:'03/20/2024',y:[42.17,42.25,42.06,42.23]},{ x:'03/21/2024',y:[43.45,44.02,43.45,44.00]},{ x:'03/22/2024',y:[44.05,44.15,43.95,44.13]},{ x:'03/25/2024',y:[44.18,44.18,43.88,44.04]},{ x:'03/26/2024',y:[44.04,44.17,43.98,44.16]},{ x:'03/27/2024',y:[43.73,43.88,43.61,43.87]},{ x:'03/28/2024',y:[44.04,44.11,44.00,44.00]},{ x:'03/29/2024',y:[43.97,44.19,43.92,44.18]},{ x:'04/01/2024',y:[44.40,44.47,44.24,44.25]},{ x:'04/02/2024',y:[44.65,44.67,44.48,44.50]},{ x:'04/03/2024',y:[43.99,43.99,43.75,43.76]},{ x:'04/08/2024',y:[43.56,43.56,43.43,43.48]},{ x:'04/09/2024',y:[43.48,43.76,43.46,43.74]},{ x:'04/10/2024',y:[43.87,43.93,43.74,43.78]},{ x:'04/11/2024',y:[43.24,43.54,43.20,43.52]},{ x:'04/12/2024',y:[44.33,44.41,44.28,44.32]},{ x:'04/15/2024',y:[43.28,43.32,43.16,43.20]},{ x:'04/16/2024',y:[42.71,42.74,42.59,42.68]},{ x:'04/17/2024',y:[43.05,43.27,43.05,43.07]},{ x:'04/18/2024',y:[41.89,41.89,41.77,41.86]},{ x:'04/19/2024',y:[40.78,40.78,40.00,40.44]},{ x:'04/22/2024',y:[39.50,39.83,39.46,39.83]},{ x:'04/23/2024',y:[40.13,40.24,40.13,40.22]},{ x:'04/24/2024',y:[41.55,41.74,41.51,41.74]},{ x:'04/25/2024',y:[41.40,41.59,41.25,41.27]},{ x:'04/26/2024',y:[42.20,42.29,42.20,42.26]},{ x:'04/29/2024',y:[43.32,43.50,43.32,43.49]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00830 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());