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/16/2024',y:[39.15,39.15,38.27,38.49]},{ x:'04/17/2024',y:[38.60,39.00,38.57,38.94]},{ x:'04/18/2024',y:[38.15,38.36,37.97,38.18]},{ x:'04/19/2024',y:[37.82,37.83,36.65,37.27]},{ x:'04/22/2024',y:[37.27,37.35,36.83,36.92]},{ x:'04/23/2024',y:[37.19,37.34,36.94,37.12]},{ x:'04/24/2024',y:[37.46,37.85,37.46,37.85]},{ x:'04/25/2024',y:[37.59,37.63,37.38,37.51]},{ x:'04/26/2024',y:[37.66,37.84,37.66,37.69]},{ x:'04/29/2024',y:[38.00,38.40,38.00,38.34]},{ x:'04/30/2024',y:[38.34,38.42,38.21,38.32]},{ x:'05/02/2024',y:[38.10,38.40,37.94,38.35]},{ x:'05/03/2024',y:[38.68,38.75,38.43,38.45]},{ x:'05/06/2024',y:[38.71,38.90,38.67,38.88]},{ x:'05/07/2024',y:[38.96,39.15,38.71,38.97]},{ x:'05/08/2024',y:[38.90,39.07,38.88,39.02]},{ x:'05/09/2024',y:[39.02,39.08,38.88,38.92]},{ x:'05/10/2024',y:[38.92,39.10,38.77,39.04]},{ x:'05/13/2024',y:[39.07,39.15,38.93,39.04]},{ x:'05/14/2024',y:[39.19,39.34,39.14,39.26]},{ x:'05/15/2024',y:[39.27,39.59,39.27,39.30]},{ x:'05/16/2024',y:[39.50,39.67,39.50,39.60]},{ x:'05/17/2024',y:[39.60,39.70,39.45,39.51]},{ x:'05/20/2024',y:[39.52,39.70,39.42,39.66]},{ x:'05/21/2024',y:[39.66,39.66,39.33,39.50]},{ x:'05/22/2024',y:[39.70,40.07,39.70,40.04]},{ x:'05/23/2024',y:[40.04,40.15,39.80,40.01]},{ x:'05/24/2024',y:[39.97,40.13,39.75,40.10]},{ x:'06/11/2024',y:[39.98,40.02,39.85,39.95]},{ x:'06/12/2024',y:[39.95,40.02,39.90,39.97]},{ x:'06/13/2024',y:[40.20,40.45,40.19,40.42]},{ x:'06/14/2024',y:[40.42,40.56,40.41,40.55]},{ x:'06/17/2024',y:[40.56,40.85,40.55,40.79]},{ x:'06/18/2024',y:[40.80,40.98,40.80,40.96]},{ x:'06/19/2024',y:[40.98,41.62,40.98,41.52]},{ x:'06/20/2024',y:[41.52,41.96,41.51,41.95]},{ x:'06/21/2024',y:[41.67,41.96,41.61,41.90]},{ x:'06/24/2024',y:[41.84,41.84,41.35,41.41]},{ x:'06/25/2024',y:[41.27,41.36,40.81,41.30]},{ x:'06/26/2024',y:[41.30,41.57,41.01,41.20]},{ x:'06/27/2024',y:[41.01,41.05,40.80,40.91]},{ x:'06/28/2024',y:[40.97,41.35,40.97,41.12]},{ x:'07/01/2024',y:[41.42,41.44,41.25,41.35]},{ x:'07/02/2024',y:[41.29,41.29,40.86,41.10]},{ x:'07/03/2024',y:[41.34,41.43,41.24,41.42]},{ x:'07/04/2024',y:[41.58,41.90,41.56,41.88]},{ x:'07/05/2024',y:[41.90,42.01,41.85,41.94]},{ x:'07/12/2024',y:[42.49,42.55,42.17,42.39]},{ x:'07/15/2024',y:[42.50,42.54,42.16,42.37]},{ x:'07/16/2024',y:[41.44,41.44,41.18,41.30]},{ x:'07/17/2024',y:[41.30,41.31,40.92,41.00]},{ x:'07/18/2024',y:[40.60,40.60,40.13,40.40]},{ x:'07/19/2024',y:[40.33,40.35,39.66,39.81]},{ x:'07/22/2024',y:[39.80,39.81,38.55,39.04]},{ x:'07/23/2024',y:[39.26,39.53,39.26,39.47]},{ x:'07/26/2024',y:[38.51,38.82,38.30,38.82]},{ x:'07/29/2024',y:[39.01,39.22,38.34,38.42]},{ x:'07/30/2024',y:[38.30,38.38,37.67,38.37]},{ x:'07/31/2024',y:[38.23,38.48,38.09,38.37]},{ x:'08/01/2024',y:[38.85,39.15,38.78,39.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0056 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());