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/29/2024',y:[45.40,45.41,45.37,45.38]},{ x:'04/30/2024',y:[45.27,45.31,45.23,45.31]},{ x:'05/02/2024',y:[44.90,44.99,44.90,44.97]},{ x:'05/03/2024',y:[45.30,45.30,45.18,45.18]},{ x:'05/06/2024',y:[45.32,45.43,45.32,45.42]},{ x:'05/07/2024',y:[45.59,45.72,45.59,45.68]},{ x:'05/08/2024',y:[45.71,45.80,45.71,45.75]},{ x:'05/09/2024',y:[45.89,45.90,45.87,45.87]},{ x:'05/10/2024',y:[46.42,46.45,46.38,46.42]},{ x:'05/13/2024',y:[46.48,46.51,46.46,46.51]},{ x:'05/14/2024',y:[46.37,46.38,46.37,46.38]},{ x:'05/15/2024',y:[46.42,46.42,46.29,46.29]},{ x:'05/16/2024',y:[46.29,46.72,46.29,46.56]},{ x:'05/17/2024',y:[46.57,46.70,46.57,46.65]},{ x:'05/20/2024',y:[46.90,46.90,46.86,46.90]},{ x:'05/21/2024',y:[46.00,46.77,46.00,46.72]},{ x:'05/22/2024',y:[46.72,46.76,46.72,46.76]},{ x:'05/23/2024',y:[46.48,46.54,46.48,46.52]},{ x:'05/24/2024',y:[46.07,46.07,45.79,45.80]},{ x:'06/11/2024',y:[45.73,45.73,45.70,45.71]},{ x:'06/12/2024',y:[45.65,45.67,45.57,45.67]},{ x:'06/13/2024',y:[45.49,45.52,45.45,45.48]},{ x:'06/14/2024',y:[45.45,45.54,45.45,45.54]},{ x:'06/17/2024',y:[45.43,45.43,45.37,45.40]},{ x:'06/18/2024',y:[45.67,45.74,45.67,45.70]},{ x:'06/19/2024',y:[45.70,45.72,45.69,45.72]},{ x:'06/20/2024',y:[45.69,45.69,45.60,45.68]},{ x:'06/21/2024',y:[46.00,46.06,45.98,46.05]},{ x:'06/24/2024',y:[46.05,46.05,45.90,45.97]},{ x:'06/25/2024',y:[46.15,46.53,46.13,46.53]},{ x:'06/26/2024',y:[46.32,46.32,46.11,46.19]},{ x:'06/27/2024',y:[46.12,46.21,46.12,46.15]},{ x:'06/28/2024',y:[46.15,46.30,46.15,46.19]},{ x:'07/01/2024',y:[46.19,46.23,46.19,46.23]},{ x:'07/02/2024',y:[46.33,46.33,46.25,46.28]},{ x:'07/03/2024',y:[46.49,46.61,46.49,46.61]},{ x:'07/04/2024',y:[46.49,46.49,46.41,46.46]},{ x:'07/05/2024',y:[46.46,46.46,46.32,46.38]},{ x:'07/12/2024',y:[46.92,47.05,46.92,47.05]},{ x:'07/15/2024',y:[47.36,47.49,47.36,47.48]},{ x:'07/16/2024',y:[47.73,47.74,47.72,47.74]},{ x:'07/17/2024',y:[48.57,48.63,48.55,48.59]},{ x:'07/18/2024',y:[48.60,48.96,48.60,48.91]},{ x:'07/19/2024',y:[48.32,48.44,48.31,48.38]},{ x:'07/22/2024',y:[48.04,48.15,48.02,48.12]},{ x:'07/23/2024',y:[48.34,48.34,48.13,48.20]},{ x:'07/26/2024',y:[47.83,47.83,47.68,47.81]},{ x:'07/29/2024',y:[48.40,48.66,48.40,48.66]},{ x:'07/30/2024',y:[48.36,48.44,48.34,48.44]},{ x:'07/31/2024',y:[48.43,48.68,48.43,48.54]},{ x:'08/01/2024',y:[48.63,48.78,48.63,48.77]},{ x:'08/02/2024',y:[47.69,48.01,47.69,47.97]},{ x:'08/05/2024',y:[46.81,47.05,46.72,46.91]},{ x:'08/06/2024',y:[46.34,46.59,46.32,46.59]},{ x:'08/07/2024',y:[46.47,46.75,46.40,46.74]},{ x:'08/08/2024',y:[46.00,46.04,45.94,45.97]},{ x:'08/09/2024',y:[46.61,46.69,46.50,46.50]},{ x:'08/12/2024',y:[46.50,46.64,46.50,46.64]},{ x:'08/13/2024',y:[46.54,46.55,46.39,46.42]},{ x:'08/14/2024',y:[46.71,46.73,46.66,46.69]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00668 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());