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:[37.07,37.11,37.07,37.10]},{ x:'05/02/2024',y:[37.14,37.20,37.14,37.17]},{ x:'05/03/2024',y:[36.99,37.05,36.99,37.02]},{ x:'05/06/2024',y:[36.95,37.00,36.95,36.99]},{ x:'05/07/2024',y:[37.07,37.13,37.07,37.12]},{ x:'05/08/2024',y:[37.20,37.24,37.20,37.22]},{ x:'05/09/2024',y:[37.14,37.21,37.14,37.20]},{ x:'05/10/2024',y:[37.20,37.28,37.20,37.27]},{ x:'05/13/2024',y:[37.19,37.26,37.19,37.25]},{ x:'05/14/2024',y:[37.24,37.24,37.22,37.22]},{ x:'05/15/2024',y:[37.13,37.13,37.05,37.05]},{ x:'05/16/2024',y:[37.04,37.04,36.91,36.98]},{ x:'05/17/2024',y:[37.08,37.11,37.08,37.09]},{ x:'05/20/2024',y:[37.05,37.09,37.05,37.08]},{ x:'05/21/2024',y:[37.13,37.20,37.13,37.15]},{ x:'05/22/2024',y:[37.14,37.17,37.13,37.17]},{ x:'05/23/2024',y:[37.12,37.14,37.07,37.07]},{ x:'05/24/2024',y:[37.07,37.10,37.07,37.08]},{ x:'06/11/2024',y:[37.25,37.31,37.25,37.28]},{ x:'06/12/2024',y:[37.25,37.32,37.25,37.29]},{ x:'06/13/2024',y:[37.21,37.29,37.21,37.28]},{ x:'06/14/2024',y:[37.37,37.40,37.37,37.40]},{ x:'06/17/2024',y:[37.31,37.37,37.31,37.36]},{ x:'06/18/2024',y:[37.38,37.42,37.38,37.42]},{ x:'06/19/2024',y:[37.39,37.46,37.39,37.40]},{ x:'06/20/2024',y:[37.37,37.42,37.37,37.38]},{ x:'06/21/2024',y:[37.39,37.44,37.37,37.40]},{ x:'06/24/2024',y:[37.42,37.42,37.41,37.41]},{ x:'06/25/2024',y:[37.44,37.51,37.44,37.46]},{ x:'06/26/2024',y:[37.53,37.60,37.53,37.60]},{ x:'06/27/2024',y:[37.64,37.67,37.64,37.67]},{ x:'06/28/2024',y:[37.66,37.67,37.60,37.60]},{ x:'07/01/2024',y:[37.54,37.59,37.54,37.58]},{ x:'07/02/2024',y:[37.69,37.72,37.67,37.71]},{ x:'07/03/2024',y:[37.70,37.83,37.70,37.81]},{ x:'07/04/2024',y:[37.72,37.74,37.70,37.70]},{ x:'07/05/2024',y:[37.57,37.63,37.57,37.63]},{ x:'07/12/2024',y:[37.79,37.87,37.79,37.87]},{ x:'07/15/2024',y:[37.90,37.96,37.90,37.92]},{ x:'07/16/2024',y:[37.63,37.68,37.63,37.66]},{ x:'07/17/2024',y:[37.68,37.70,37.65,37.65]},{ x:'07/18/2024',y:[37.59,37.63,37.59,37.62]},{ x:'07/19/2024',y:[37.70,37.81,37.70,37.80]},{ x:'07/22/2024',y:[37.76,37.91,37.76,37.91]},{ x:'07/23/2024',y:[37.82,37.88,37.82,37.86]},{ x:'07/26/2024',y:[37.86,37.90,37.83,37.88]},{ x:'07/29/2024',y:[37.91,37.98,37.91,37.97]},{ x:'07/30/2024',y:[37.96,38.03,37.96,38.00]},{ x:'07/31/2024',y:[37.98,38.05,37.98,37.98]},{ x:'08/01/2024',y:[37.90,37.97,37.90,37.96]},{ x:'08/02/2024',y:[38.08,38.15,38.07,38.07]},{ x:'08/05/2024',y:[38.07,38.11,38.02,38.06]},{ x:'08/06/2024',y:[38.00,38.06,38.00,38.04]},{ x:'08/07/2024',y:[38.00,38.04,38.00,38.02]},{ x:'08/08/2024',y:[38.00,38.01,37.92,37.92]},{ x:'08/09/2024',y:[37.77,37.77,37.69,37.75]},{ x:'08/12/2024',y:[37.65,37.71,37.65,37.69]},{ x:'08/13/2024',y:[37.78,37.79,37.71,37.71]},{ x:'08/14/2024',y:[37.65,37.65,37.62,37.63]},{ x:'08/15/2024',y:[37.67,37.69,37.67,37.68]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00849b 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());