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:'04/10/2024',y:[38.96,39.05,38.88,38.90]},{ x:'04/11/2024',y:[38.65,38.87,38.58,38.86]},{ x:'04/12/2024',y:[38.88,38.96,38.71,38.82]},{ x:'04/15/2024',y:[38.56,38.56,38.33,38.47]},{ x:'04/16/2024',y:[38.07,38.15,37.20,37.29]},{ x:'04/17/2024',y:[37.41,37.86,37.41,37.77]},{ x:'04/18/2024',y:[37.58,38.06,37.47,38.06]},{ x:'04/19/2024',y:[37.26,37.26,36.06,36.44]},{ x:'04/22/2024',y:[36.38,36.69,36.25,36.37]},{ x:'04/23/2024',y:[36.80,36.89,36.53,36.70]},{ x:'04/24/2024',y:[37.08,37.76,37.07,37.65]},{ x:'04/25/2024',y:[37.23,37.29,36.98,37.05]},{ x:'04/26/2024',y:[37.46,37.81,37.46,37.63]},{ x:'04/29/2024',y:[37.75,38.36,37.75,38.25]},{ x:'04/30/2024',y:[38.28,38.36,38.19,38.19]},{ x:'05/02/2024',y:[38.04,38.04,37.66,37.69]},{ x:'05/03/2024',y:[38.09,38.22,37.74,37.82]},{ x:'05/06/2024',y:[38.34,38.60,38.30,38.42]},{ x:'05/07/2024',y:[38.60,38.74,38.41,38.63]},{ x:'05/08/2024',y:[38.58,38.72,38.46,38.69]},{ x:'05/09/2024',y:[38.69,38.78,38.57,38.57]},{ x:'05/10/2024',y:[38.63,39.00,38.63,38.93]},{ x:'05/13/2024',y:[39.20,39.50,39.13,39.21]},{ x:'05/14/2024',y:[39.21,39.49,39.15,39.47]},{ x:'05/15/2024',y:[39.64,40.22,39.61,39.86]},{ x:'05/16/2024',y:[40.23,40.56,40.08,40.10]},{ x:'05/17/2024',y:[40.11,40.19,39.96,40.04]},{ x:'05/20/2024',y:[40.04,40.10,39.66,40.01]},{ x:'05/21/2024',y:[40.04,40.04,39.75,39.94]},{ x:'05/22/2024',y:[40.05,40.66,40.03,40.62]},{ x:'05/23/2024',y:[40.68,40.88,40.60,40.82]},{ x:'05/24/2024',y:[40.62,40.80,40.30,40.73]},{ x:'06/11/2024',y:[41.34,41.65,41.34,41.37]},{ x:'06/12/2024',y:[41.37,41.83,41.37,41.82]},{ x:'06/13/2024',y:[42.99,42.99,42.20,42.41]},{ x:'06/14/2024',y:[42.41,42.72,42.23,42.68]},{ x:'06/17/2024',y:[42.65,42.86,42.55,42.71]},{ x:'06/18/2024',y:[43.30,43.44,43.10,43.35]},{ x:'06/19/2024',y:[43.93,44.68,43.92,44.58]},{ x:'06/20/2024',y:[44.58,44.90,44.44,44.87]},{ x:'06/21/2024',y:[44.30,44.78,44.30,44.60]},{ x:'06/24/2024',y:[44.03,44.19,43.61,43.64]},{ x:'06/25/2024',y:[43.41,43.65,43.00,43.64]},{ x:'06/26/2024',y:[43.72,44.15,43.72,43.97]},{ x:'06/27/2024',y:[43.64,43.95,43.53,43.91]},{ x:'06/28/2024',y:[43.92,44.43,43.87,44.22]},{ x:'07/01/2024',y:[44.22,44.59,44.22,44.26]},{ x:'07/02/2024',y:[44.13,44.28,43.76,44.01]},{ x:'07/03/2024',y:[44.56,44.58,44.20,44.49]},{ x:'07/04/2024',y:[45.06,45.46,45.06,45.43]},{ x:'07/05/2024',y:[45.44,45.60,45.31,45.31]},{ x:'07/12/2024',y:[46.73,46.73,46.21,46.33]},{ x:'07/15/2024',y:[46.70,46.74,46.23,46.28]},{ x:'07/16/2024',y:[46.05,46.60,45.96,46.08]},{ x:'07/17/2024',y:[46.00,46.06,45.46,45.61]},{ x:'07/18/2024',y:[44.54,44.85,44.23,44.75]},{ x:'07/19/2024',y:[44.43,44.49,43.82,43.85]},{ x:'07/22/2024',y:[43.77,43.77,42.42,42.60]},{ x:'07/23/2024',y:[43.11,43.66,43.11,43.63]},{ x:'07/26/2024',y:[42.15,42.32,41.80,42.17]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00692 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());