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/30/2024',y:[40.26,40.40,40.18,40.18]},{ x:'05/02/2024',y:[39.75,39.89,39.65,39.78]},{ x:'05/03/2024',y:[40.41,40.41,39.85,39.92]},{ x:'05/06/2024',y:[40.49,40.82,40.41,40.63]},{ x:'05/07/2024',y:[40.85,40.85,40.58,40.77]},{ x:'05/08/2024',y:[40.77,40.92,40.66,40.92]},{ x:'05/09/2024',y:[40.91,41.08,40.83,40.88]},{ x:'05/10/2024',y:[40.99,41.28,40.88,41.19]},{ x:'05/13/2024',y:[41.45,41.60,41.31,41.44]},{ x:'05/14/2024',y:[41.44,41.68,41.39,41.67]},{ x:'05/15/2024',y:[41.80,42.45,41.80,42.15]},{ x:'05/16/2024',y:[42.66,42.85,42.37,42.47]},{ x:'05/17/2024',y:[41.89,41.97,41.76,41.81]},{ x:'05/20/2024',y:[41.82,41.85,41.46,41.80]},{ x:'05/21/2024',y:[41.70,41.79,41.50,41.67]},{ x:'05/22/2024',y:[41.84,42.40,41.84,42.36]},{ x:'05/23/2024',y:[42.39,42.63,42.30,42.59]},{ x:'05/24/2024',y:[42.26,42.56,42.21,42.48]},{ x:'06/11/2024',y:[42.93,43.22,42.93,43.02]},{ x:'06/12/2024',y:[43.05,43.53,43.02,43.51]},{ x:'06/13/2024',y:[44.04,44.50,43.90,44.14]},{ x:'06/14/2024',y:[44.12,44.43,43.98,44.37]},{ x:'06/17/2024',y:[44.35,44.50,44.19,44.42]},{ x:'06/18/2024',y:[44.73,45.00,44.73,44.98]},{ x:'06/19/2024',y:[45.27,46.28,45.27,46.18]},{ x:'06/20/2024',y:[46.18,46.70,46.15,46.70]},{ x:'06/21/2024',y:[46.22,46.60,46.09,46.36]},{ x:'06/24/2024',y:[46.12,46.12,45.47,45.52]},{ x:'06/25/2024',y:[45.28,45.54,44.84,45.50]},{ x:'06/26/2024',y:[45.68,46.00,45.50,45.80]},{ x:'06/27/2024',y:[45.27,45.71,45.13,45.61]},{ x:'06/28/2024',y:[45.65,46.20,45.62,46.01]},{ x:'07/01/2024',y:[46.02,46.25,45.90,45.99]},{ x:'07/02/2024',y:[45.94,45.99,45.47,45.65]},{ x:'07/03/2024',y:[46.13,46.20,45.87,46.18]},{ x:'07/04/2024',y:[46.87,47.12,46.84,47.00]},{ x:'07/05/2024',y:[47.03,47.20,46.94,46.96]},{ x:'07/12/2024',y:[48.11,48.24,47.85,47.87]},{ x:'07/15/2024',y:[48.26,48.27,47.78,47.95]},{ x:'07/16/2024',y:[47.81,48.44,47.81,48.01]},{ x:'07/17/2024',y:[47.95,48.01,47.55,47.61]},{ x:'07/18/2024',y:[46.81,46.98,46.40,46.88]},{ x:'07/19/2024',y:[46.60,46.72,45.90,45.94]},{ x:'07/22/2024',y:[45.91,45.91,44.40,44.72]},{ x:'07/23/2024',y:[45.16,45.71,45.16,45.70]},{ x:'07/26/2024',y:[44.44,44.51,44.00,44.51]},{ x:'07/29/2024',y:[44.89,45.25,44.55,44.57]},{ x:'07/30/2024',y:[44.28,44.77,43.88,44.64]},{ x:'07/31/2024',y:[44.36,44.90,44.25,44.71]},{ x:'08/01/2024',y:[45.50,45.57,45.11,45.38]},{ x:'08/02/2024',y:[44.28,44.30,43.49,43.49]},{ x:'08/05/2024',y:[41.63,41.63,39.65,39.65]},{ x:'08/06/2024',y:[40.92,41.99,39.75,41.25]},{ x:'08/07/2024',y:[41.51,42.89,41.51,42.71]},{ x:'08/08/2024',y:[41.98,42.47,41.65,42.02]},{ x:'08/09/2024',y:[42.89,43.47,42.82,43.03]},{ x:'08/12/2024',y:[43.46,44.08,43.46,43.75]},{ x:'08/13/2024',y:[44.15,44.16,43.71,43.83]},{ x:'08/14/2024',y:[44.48,44.60,44.23,44.37]},{ x:'08/15/2024',y:[44.40,44.55,44.03,44.11]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00850 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());