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:[36.03,36.03,35.95,36.02]},{ x:'04/29/2024',y:[36.34,36.35,36.27,36.30]},{ x:'04/30/2024',y:[36.40,36.46,36.38,36.45]},{ x:'05/02/2024',y:[36.34,36.40,36.32,36.40]},{ x:'05/03/2024',y:[36.34,36.39,36.31,36.35]},{ x:'05/06/2024',y:[36.60,36.63,36.54,36.63]},{ x:'05/07/2024',y:[36.75,36.96,36.75,36.96]},{ x:'05/08/2024',y:[36.99,37.03,36.92,36.95]},{ x:'05/09/2024',y:[36.83,36.83,36.72,36.74]},{ x:'05/10/2024',y:[36.88,36.99,36.88,36.94]},{ x:'05/13/2024',y:[36.79,36.83,36.78,36.81]},{ x:'05/14/2024',y:[36.81,36.81,36.76,36.79]},{ x:'05/15/2024',y:[36.91,36.91,36.79,36.83]},{ x:'05/16/2024',y:[37.26,37.26,37.14,37.21]},{ x:'05/17/2024',y:[36.63,36.72,36.63,36.67]},{ x:'05/20/2024',y:[36.51,36.52,36.47,36.47]},{ x:'05/21/2024',y:[36.43,36.46,36.40,36.45]},{ x:'05/22/2024',y:[36.52,36.53,36.48,36.48]},{ x:'05/23/2024',y:[36.50,36.51,36.45,36.46]},{ x:'05/24/2024',y:[36.36,36.37,36.28,36.30]},{ x:'06/11/2024',y:[36.59,36.59,36.50,36.57]},{ x:'06/12/2024',y:[36.75,36.75,36.70,36.74]},{ x:'06/13/2024',y:[36.91,37.00,36.91,36.99]},{ x:'06/14/2024',y:[37.19,37.30,37.19,37.21]},{ x:'06/17/2024',y:[37.22,37.28,37.22,37.25]},{ x:'06/18/2024',y:[37.15,37.18,37.14,37.15]},{ x:'06/19/2024',y:[37.33,37.37,37.31,37.36]},{ x:'06/20/2024',y:[37.30,37.31,37.23,37.25]},{ x:'06/21/2024',y:[37.16,37.16,37.07,37.10]},{ x:'06/24/2024',y:[37.20,37.23,37.14,37.16]},{ x:'06/25/2024',y:[37.33,37.38,37.32,37.37]},{ x:'06/26/2024',y:[37.24,37.31,37.21,37.27]},{ x:'06/27/2024',y:[37.03,37.03,36.95,37.02]},{ x:'06/28/2024',y:[37.04,37.28,36.98,37.03]},{ x:'07/01/2024',y:[36.79,36.79,36.55,36.66]},{ x:'07/02/2024',y:[36.66,36.68,36.55,36.68]},{ x:'07/03/2024',y:[36.78,36.93,36.76,36.88]},{ x:'07/04/2024',y:[37.10,37.10,36.96,36.98]},{ x:'07/05/2024',y:[37.04,37.04,36.89,36.98]},{ x:'07/12/2024',y:[37.50,37.62,37.49,37.62]},{ x:'07/15/2024',y:[37.65,37.65,37.57,37.64]},{ x:'07/16/2024',y:[37.68,37.71,37.67,37.71]},{ x:'07/17/2024',y:[38.05,38.05,37.90,37.95]},{ x:'07/18/2024',y:[37.98,37.98,37.88,37.89]},{ x:'07/19/2024',y:[37.90,37.91,37.86,37.90]},{ x:'07/22/2024',y:[37.88,37.97,37.85,37.96]},{ x:'07/23/2024',y:[37.86,37.86,37.78,37.81]},{ x:'07/26/2024',y:[37.57,37.59,37.49,37.51]},{ x:'07/29/2024',y:[37.72,37.85,37.69,37.82]},{ x:'07/30/2024',y:[37.86,37.91,37.86,37.88]},{ x:'07/31/2024',y:[37.89,38.02,37.88,37.96]},{ x:'08/01/2024',y:[38.21,38.29,38.19,38.20]},{ x:'08/02/2024',y:[38.30,38.55,38.30,38.42]},{ x:'08/05/2024',y:[39.57,39.57,38.69,38.75]},{ x:'08/06/2024',y:[38.45,38.55,38.23,38.54]},{ x:'08/07/2024',y:[38.31,38.35,38.27,38.30]},{ x:'08/08/2024',y:[38.24,38.24,38.03,38.08]},{ x:'08/09/2024',y:[37.96,37.96,37.79,37.82]},{ x:'08/12/2024',y:[38.06,38.10,38.00,38.06]},{ x:'08/13/2024',y:[38.10,38.16,38.07,38.07]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00761b 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());