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/09/2024',y:[35.08,35.13,35.08,35.11]},{ x:'04/10/2024',y:[35.17,35.17,35.11,35.11]},{ x:'04/11/2024',y:[34.94,35.01,34.94,35.01]},{ x:'04/12/2024',y:[34.81,34.91,34.81,34.91]},{ x:'04/15/2024',y:[34.97,34.97,34.95,34.97]},{ x:'04/16/2024',y:[34.96,35.02,34.94,35.02]},{ x:'04/17/2024',y:[34.69,34.72,34.68,34.71]},{ x:'04/18/2024',y:[34.39,34.40,34.36,34.40]},{ x:'04/19/2024',y:[34.58,34.88,34.58,34.77]},{ x:'04/22/2024',y:[34.51,34.51,34.51,34.51]},{ x:'04/23/2024',y:[34.62,34.62,34.59,34.59]},{ x:'04/24/2024',y:[34.49,34.55,34.48,34.55]},{ x:'04/25/2024',y:[34.53,34.53,34.53,34.53]},{ x:'04/26/2024',y:[34.50,34.50,34.35,34.36]},{ x:'04/29/2024',y:[34.41,34.41,34.39,34.39]},{ x:'04/30/2024',y:[34.49,34.50,34.49,34.50]},{ x:'05/02/2024',y:[34.48,34.65,34.48,34.65]},{ x:'05/03/2024',y:[34.50,34.51,34.48,34.51]},{ x:'05/06/2024',y:[34.56,34.66,34.56,34.66]},{ x:'05/07/2024',y:[34.96,35.03,34.96,35.03]},{ x:'05/08/2024',y:[35.09,35.14,35.09,35.13]},{ x:'05/09/2024',y:[35.06,35.06,35.04,35.04]},{ x:'05/10/2024',y:[35.15,35.15,35.15,35.15]},{ x:'05/13/2024',y:[35.14,35.14,35.14,35.14]},{ x:'05/14/2024',y:[35.06,35.09,35.06,35.09]},{ x:'05/15/2024',y:[35.07,35.07,34.99,34.99]},{ x:'05/16/2024',y:[35.18,35.18,35.14,35.17]},{ x:'05/17/2024',y:[35.22,35.32,35.22,35.31]},{ x:'05/20/2024',y:[35.25,35.25,35.23,35.23]},{ x:'05/21/2024',y:[35.24,35.25,35.24,35.25]},{ x:'05/22/2024',y:[35.27,35.27,35.25,35.25]},{ x:'05/23/2024',y:[35.30,35.30,35.28,35.28]},{ x:'05/24/2024',y:[35.22,35.22,35.16,35.19]},{ x:'06/11/2024',y:[35.51,35.51,35.47,35.47]},{ x:'06/12/2024',y:[35.49,35.56,35.49,35.55]},{ x:'06/13/2024',y:[35.60,35.73,35.60,35.67]},{ x:'06/14/2024',y:[35.97,35.97,35.91,35.91]},{ x:'06/17/2024',y:[35.88,35.88,35.85,35.86]},{ x:'06/18/2024',y:[35.86,35.86,35.83,35.85]},{ x:'06/19/2024',y:[35.95,35.96,35.95,35.95]},{ x:'06/20/2024',y:[35.81,35.85,35.81,35.83]},{ x:'06/21/2024',y:[35.86,35.86,35.81,35.81]},{ x:'06/24/2024',y:[35.90,35.90,35.84,35.84]},{ x:'06/25/2024',y:[35.97,35.98,35.97,35.98]},{ x:'06/26/2024',y:[35.92,35.97,35.92,35.97]},{ x:'06/27/2024',y:[35.79,35.79,35.77,35.79]},{ x:'06/28/2024',y:[35.88,35.88,35.79,35.80]},{ x:'07/01/2024',y:[35.56,35.56,35.54,35.54]},{ x:'07/02/2024',y:[35.58,35.58,35.49,35.54]},{ x:'07/03/2024',y:[35.43,35.68,35.42,35.65]},{ x:'07/04/2024',y:[35.70,35.75,35.70,35.74]},{ x:'07/05/2024',y:[35.59,35.61,35.58,35.61]},{ x:'07/12/2024',y:[36.04,36.16,36.03,36.16]},{ x:'07/15/2024',y:[36.16,36.23,36.16,36.20]},{ x:'07/16/2024',y:[35.84,36.20,35.78,35.84]},{ x:'07/17/2024',y:[35.91,35.92,35.90,35.90]},{ x:'07/18/2024',y:[35.80,35.83,35.79,35.83]},{ x:'07/19/2024',y:[35.88,35.93,35.88,35.93]},{ x:'07/22/2024',y:[35.93,36.00,35.89,35.95]},{ x:'07/23/2024',y:[35.86,35.87,35.86,35.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00848b 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());