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/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]},{ x:'08/29/2023',y:[47.90,48.01,47.73,47.89]},{ x:'08/30/2023',y:[48.25,48.34,48.19,48.33]},{ x:'08/31/2023',y:[47.99,48.03,47.70,47.76]},{ x:'09/01/2023',y:[47.65,47.70,47.50,47.63]},{ x:'09/04/2023',y:[48.39,48.44,48.10,48.20]},{ x:'09/05/2023',y:[48.54,48.82,48.54,48.75]},{ x:'09/06/2023',y:[48.80,48.99,48.75,48.82]},{ x:'09/07/2023',y:[48.67,48.98,48.67,48.93]},{ x:'09/08/2023',y:[48.95,49.85,48.95,49.66]},{ x:'09/11/2023',y:[49.91,50.70,49.91,50.55]},{ x:'09/12/2023',y:[50.95,51.35,50.50,50.90]},{ x:'09/13/2023',y:[50.90,51.00,50.70,50.85]},{ x:'09/14/2023',y:[51.35,51.60,51.20,51.20]},{ x:'09/15/2023',y:[51.45,51.80,51.45,51.80]} ] }], 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());