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/26/2024',y:[39.76,39.77,39.73,39.75]},{ x:'04/29/2024',y:[39.92,39.94,39.88,39.94]},{ x:'04/30/2024',y:[39.92,39.97,39.88,39.95]},{ x:'05/02/2024',y:[39.91,39.95,39.89,39.93]},{ x:'05/03/2024',y:[39.91,39.91,39.77,39.84]},{ x:'05/06/2024',y:[39.84,39.88,39.83,39.87]},{ x:'05/07/2024',y:[39.98,40.00,39.98,40.00]},{ x:'05/08/2024',y:[40.06,40.10,40.06,40.09]},{ x:'05/09/2024',y:[40.07,40.07,39.95,40.02]},{ x:'05/10/2024',y:[40.03,40.09,40.01,40.05]},{ x:'05/13/2024',y:[40.05,40.05,39.98,40.04]},{ x:'05/14/2024',y:[40.05,40.05,39.98,39.98]},{ x:'05/15/2024',y:[40.00,40.00,39.77,39.79]},{ x:'05/16/2024',y:[39.75,39.75,39.66,39.72]},{ x:'05/17/2024',y:[39.82,39.86,39.81,39.85]},{ x:'05/20/2024',y:[39.84,39.84,39.79,39.84]},{ x:'05/21/2024',y:[39.87,39.92,39.85,39.92]},{ x:'05/22/2024',y:[39.90,39.92,39.87,39.87]},{ x:'05/23/2024',y:[39.88,39.88,39.74,39.74]},{ x:'05/24/2024',y:[39.82,39.82,39.72,39.72]},{ x:'06/11/2024',y:[40.13,40.13,40.02,40.02]},{ x:'06/12/2024',y:[40.16,40.16,40.06,40.10]},{ x:'06/13/2024',y:[40.34,40.34,40.07,40.14]},{ x:'06/14/2024',y:[40.10,40.24,40.10,40.21]},{ x:'06/17/2024',y:[40.10,40.13,40.06,40.06]},{ x:'06/18/2024',y:[40.09,40.18,40.08,40.11]},{ x:'06/19/2024',y:[40.21,40.25,40.17,40.20]},{ x:'06/20/2024',y:[40.27,40.27,40.18,40.19]},{ x:'06/21/2024',y:[40.18,40.22,40.15,40.15]},{ x:'06/24/2024',y:[40.13,40.22,40.13,40.21]},{ x:'06/25/2024',y:[40.24,40.33,40.24,40.30]},{ x:'06/26/2024',y:[40.30,40.40,40.30,40.39]},{ x:'06/27/2024',y:[40.39,40.42,40.39,40.42]},{ x:'06/28/2024',y:[40.44,40.46,40.37,40.38]},{ x:'07/01/2024',y:[40.38,40.40,40.33,40.38]},{ x:'07/02/2024',y:[40.42,40.45,40.40,40.41]},{ x:'07/03/2024',y:[40.54,40.64,40.52,40.64]},{ x:'07/04/2024',y:[40.66,40.66,40.55,40.55]},{ x:'07/05/2024',y:[40.56,40.56,40.44,40.53]},{ x:'07/12/2024',y:[40.70,40.80,40.70,40.79]},{ x:'07/15/2024',y:[40.90,40.95,40.88,40.95]},{ x:'07/16/2024',y:[40.39,40.46,40.39,40.40]},{ x:'07/17/2024',y:[40.51,40.55,40.51,40.51]},{ x:'07/18/2024',y:[40.45,40.51,40.45,40.49]},{ x:'07/19/2024',y:[40.52,40.66,40.52,40.64]},{ x:'07/22/2024',y:[40.65,40.75,40.64,40.71]},{ x:'07/23/2024',y:[40.74,40.75,40.73,40.74]},{ x:'07/26/2024',y:[40.74,40.81,40.72,40.74]},{ x:'07/29/2024',y:[40.82,40.85,40.79,40.83]},{ x:'07/30/2024',y:[40.80,40.80,40.77,40.77]},{ x:'07/31/2024',y:[40.81,40.88,40.80,40.83]},{ x:'08/01/2024',y:[40.78,40.81,40.68,40.71]},{ x:'08/02/2024',y:[40.73,40.82,40.73,40.73]},{ x:'08/05/2024',y:[40.75,40.75,40.18,40.18]},{ x:'08/06/2024',y:[40.16,40.33,40.16,40.28]},{ x:'08/07/2024',y:[40.44,40.49,40.44,40.48]},{ x:'08/08/2024',y:[40.47,40.47,40.32,40.32]},{ x:'08/09/2024',y:[40.30,40.30,40.20,40.20]},{ x:'08/12/2024',y:[40.16,40.33,40.10,40.33]},{ x:'08/13/2024',y:[40.35,40.35,40.21,40.21]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00727b 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());