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/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]},{ x:'07/26/2024',y:[35.79,35.79,35.74,35.74]},{ x:'07/29/2024',y:[35.82,35.98,35.81,35.98]},{ x:'07/30/2024',y:[36.05,36.06,36.04,36.04]},{ x:'07/31/2024',y:[36.10,36.13,36.09,36.09]},{ x:'08/01/2024',y:[36.22,36.33,36.22,36.25]},{ x:'08/02/2024',y:[36.54,36.56,36.48,36.48]},{ x:'08/05/2024',y:[36.85,36.87,36.63,36.70]},{ x:'08/06/2024',y:[36.46,36.56,36.46,36.56]},{ x:'08/07/2024',y:[36.42,36.42,36.38,36.41]},{ x:'08/08/2024',y:[36.39,36.39,36.23,36.23]},{ x:'08/09/2024',y:[36.14,36.14,35.98,36.03]},{ x:'08/12/2024',y:[35.98,36.06,35.98,36.06]},{ x:'08/13/2024',y:[36.14,36.17,36.11,36.11]},{ x:'08/14/2024',y:[36.14,36.22,36.12,36.22]},{ x:'08/15/2024',y:[36.36,36.38,36.34,36.34]} ] }], 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());