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/24/2024',y:[36.14,36.14,35.98,36.06]},{ x:'04/25/2024',y:[36.03,36.03,35.93,35.94]},{ x:'04/26/2024',y:[35.83,35.83,35.78,35.81]},{ x:'04/29/2024',y:[36.08,36.14,36.05,36.06]},{ x:'04/30/2024',y:[36.16,36.25,36.12,36.22]},{ x:'05/02/2024',y:[36.17,36.20,36.14,36.20]},{ x:'05/03/2024',y:[36.16,36.20,36.13,36.13]},{ x:'05/06/2024',y:[36.31,36.41,36.31,36.39]},{ x:'05/07/2024',y:[36.50,36.68,36.50,36.67]},{ x:'05/08/2024',y:[36.68,36.75,36.65,36.67]},{ x:'05/09/2024',y:[36.52,36.56,36.46,36.50]},{ x:'05/10/2024',y:[36.68,36.75,36.67,36.67]},{ x:'05/13/2024',y:[36.62,36.62,36.56,36.56]},{ x:'05/14/2024',y:[36.51,36.53,36.50,36.51]},{ x:'05/15/2024',y:[36.55,36.60,36.48,36.49]},{ x:'05/16/2024',y:[36.65,36.97,36.65,36.88]},{ x:'05/17/2024',y:[36.80,36.88,36.80,36.82]},{ x:'05/20/2024',y:[36.73,36.75,36.67,36.70]},{ x:'05/21/2024',y:[36.70,36.70,36.65,36.68]},{ x:'05/22/2024',y:[36.74,36.78,36.71,36.71]},{ x:'05/23/2024',y:[36.71,36.73,36.67,36.67]},{ x:'05/24/2024',y:[36.58,36.58,36.53,36.53]},{ x:'06/11/2024',y:[36.86,36.86,36.74,36.78]},{ x:'06/12/2024',y:[36.93,36.98,36.92,36.94]},{ x:'06/13/2024',y:[37.11,37.23,37.11,37.18]},{ x:'06/14/2024',y:[37.43,37.49,37.43,37.43]},{ x:'06/17/2024',y:[37.43,37.44,37.36,37.37]},{ x:'06/18/2024',y:[37.30,37.33,37.29,37.30]},{ x:'06/19/2024',y:[37.46,37.48,37.46,37.47]},{ x:'06/20/2024',y:[37.41,37.41,37.35,37.35]},{ x:'06/21/2024',y:[37.22,37.26,37.22,37.25]},{ x:'06/24/2024',y:[37.34,37.38,37.29,37.31]},{ x:'06/25/2024',y:[37.48,37.51,37.46,37.51]},{ x:'06/26/2024',y:[37.45,37.49,37.40,37.46]},{ x:'06/27/2024',y:[37.17,37.23,37.17,37.23]},{ x:'06/28/2024',y:[37.40,37.41,37.23,37.26]},{ x:'07/01/2024',y:[37.06,37.06,36.82,36.91]},{ x:'07/02/2024',y:[36.86,36.90,36.83,36.87]},{ x:'07/03/2024',y:[36.87,37.14,36.87,37.13]},{ x:'07/04/2024',y:[37.30,37.30,37.22,37.22]},{ x:'07/05/2024',y:[37.15,37.17,37.11,37.16]},{ x:'07/12/2024',y:[37.73,37.81,37.71,37.81]},{ x:'07/15/2024',y:[37.92,37.92,37.77,37.83]},{ x:'07/16/2024',y:[37.57,37.84,37.45,37.48]},{ x:'07/17/2024',y:[37.66,37.70,37.66,37.66]},{ x:'07/18/2024',y:[37.66,37.66,37.60,37.61]},{ x:'07/19/2024',y:[37.65,37.67,37.62,37.65]},{ x:'07/22/2024',y:[37.62,37.74,37.60,37.74]},{ x:'07/23/2024',y:[37.57,37.60,37.57,37.58]},{ x:'07/26/2024',y:[37.38,37.38,37.31,37.32]},{ x:'07/29/2024',y:[37.64,37.70,37.62,37.70]},{ x:'07/30/2024',y:[37.69,37.76,37.69,37.72]},{ x:'07/31/2024',y:[37.74,37.84,37.74,37.77]},{ x:'08/01/2024',y:[38.02,38.08,37.97,37.99]},{ x:'08/02/2024',y:[38.25,38.35,38.18,38.19]},{ x:'08/05/2024',y:[38.51,38.67,38.42,38.47]},{ x:'08/06/2024',y:[38.45,38.45,38.11,38.22]},{ x:'08/07/2024',y:[38.20,38.20,38.03,38.12]},{ x:'08/08/2024',y:[38.10,38.10,37.74,37.75]},{ x:'08/09/2024',y:[37.44,37.55,37.39,37.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00746b 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());