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:'06/01/2023',y:[44.92,45.19,44.84,45.08]},{ x:'06/02/2023',y:[45.03,45.11,44.67,44.94]},{ x:'06/05/2023',y:[45.48,45.55,45.34,45.48]},{ x:'06/06/2023',y:[45.42,45.44,45.07,45.07]},{ x:'06/07/2023',y:[45.52,45.60,45.40,45.60]},{ x:'06/08/2023',y:[45.92,46.19,45.92,46.14]},{ x:'06/09/2023',y:[45.67,45.73,45.33,45.34]},{ x:'06/12/2023',y:[45.30,45.33,45.11,45.31]},{ x:'06/13/2023',y:[45.46,45.79,45.46,45.68]},{ x:'06/14/2023',y:[45.98,46.07,45.68,45.84]},{ x:'06/15/2023',y:[45.93,46.28,45.90,46.18]},{ x:'06/16/2023',y:[46.17,46.17,45.85,46.09]},{ x:'06/19/2023',y:[46.26,46.48,46.15,46.15]},{ x:'06/20/2023',y:[46.09,46.13,45.60,45.70]},{ x:'06/21/2023',y:[46.30,46.53,46.30,46.34]},{ x:'06/26/2023',y:[45.80,46.45,45.51,45.55]},{ x:'06/27/2023',y:[45.40,45.80,45.40,45.65]},{ x:'06/28/2023',y:[46.05,46.57,46.05,46.53]},{ x:'06/29/2023',y:[46.88,47.14,46.88,47.11]},{ x:'06/30/2023',y:[47.00,47.54,46.00,47.49]},{ x:'07/03/2023',y:[47.63,48.70,47.63,48.56]},{ x:'07/04/2023',y:[48.57,49.00,48.57,48.65]},{ x:'07/05/2023',y:[48.94,49.05,48.79,48.82]},{ x:'07/06/2023',y:[49.15,49.26,48.83,49.23]},{ x:'07/07/2023',y:[49.18,49.40,48.91,48.93]},{ x:'07/10/2023',y:[48.90,49.05,48.59,48.98]},{ x:'07/11/2023',y:[48.98,49.33,48.97,49.33]},{ x:'07/12/2023',y:[49.33,49.33,49.03,49.24]},{ x:'07/13/2023',y:[49.22,49.49,49.14,49.45]},{ x:'07/14/2023',y:[49.11,49.14,48.72,48.84]},{ x:'07/17/2023',y:[49.43,49.69,49.28,49.60]},{ x:'07/18/2023',y:[50.15,50.40,50.15,50.35]},{ x:'07/19/2023',y:[50.45,50.65,50.35,50.35]},{ x:'07/20/2023',y:[50.70,50.75,50.40,50.65]},{ x:'07/21/2023',y:[50.65,50.95,50.60,50.70]},{ x:'07/24/2023',y:[50.10,50.65,50.10,50.65]},{ x:'07/25/2023',y:[50.45,50.45,49.99,50.05]},{ x:'07/26/2023',y:[50.10,50.60,50.10,50.55]},{ x:'07/27/2023',y:[50.50,50.90,50.45,50.50]},{ x:'07/28/2023',y:[49.95,49.95,49.55,49.64]},{ x:'07/31/2023',y:[50.00,50.00,49.52,49.98]},{ x:'08/01/2023',y:[50.30,50.50,50.00,50.00]},{ x:'08/02/2023',y:[50.00,50.00,49.20,49.20]},{ x:'08/04/2023',y:[48.69,48.77,48.41,48.67]},{ x:'08/07/2023',y:[49.05,49.20,48.96,49.10]},{ x:'08/08/2023',y:[49.31,49.53,49.22,49.35]},{ x:'08/09/2023',y:[49.12,49.21,48.73,48.73]},{ x:'08/10/2023',y:[49.17,49.40,48.80,49.05]},{ x:'08/11/2023',y:[49.05,49.05,48.67,48.67]},{ x:'08/14/2023',y:[48.65,48.65,47.75,47.91]},{ x:'08/15/2023',y:[48.50,48.75,48.50,48.72]},{ x:'08/16/2023',y:[47.87,48.26,47.87,48.21]},{ x:'08/17/2023',y:[48.16,48.37,48.12,48.25]},{ x:'08/18/2023',y:[47.75,47.76,47.52,47.55]},{ x:'08/21/2023',y:[47.67,48.04,47.67,48.02]},{ x:'08/22/2023',y:[48.08,48.35,48.02,48.25]},{ x:'08/23/2023',y:[48.10,48.17,47.93,48.05]},{ x:'08/24/2023',y:[48.56,48.99,48.56,48.77]},{ x:'08/25/2023',y:[48.14,48.16,47.25,47.27]},{ x:'08/28/2023',y:[47.51,47.72,47.39,47.69]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00653l 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());