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/2023',y:[40.75,40.76,40.73,40.76]},{ x:'04/27/2023',y:[40.77,40.77,40.74,40.75]},{ x:'04/28/2023',y:[40.75,40.75,40.71,40.72]},{ x:'05/02/2023',y:[40.86,40.86,40.82,40.83]},{ x:'05/03/2023',y:[40.87,40.87,40.80,40.84]},{ x:'05/04/2023',y:[40.71,40.76,40.71,40.76]},{ x:'05/05/2023',y:[40.69,40.73,40.69,40.73]},{ x:'05/08/2023',y:[40.71,40.73,40.71,40.73]},{ x:'05/09/2023',y:[40.75,40.76,40.75,40.75]},{ x:'05/10/2023',y:[40.83,40.84,40.83,40.84]},{ x:'05/11/2023',y:[40.85,40.86,40.84,40.85]},{ x:'05/12/2023',y:[40.93,40.93,40.91,40.91]},{ x:'05/15/2023',y:[40.90,40.97,40.90,40.97]},{ x:'05/16/2023',y:[40.97,40.97,40.92,40.92]},{ x:'05/17/2023',y:[40.97,41.00,40.94,40.98]},{ x:'05/18/2023',y:[40.98,40.98,40.88,40.88]},{ x:'05/19/2023',y:[40.89,40.89,40.85,40.87]},{ x:'05/22/2023',y:[40.80,40.80,40.73,40.78]},{ x:'05/23/2023',y:[40.83,40.84,40.83,40.84]},{ x:'05/24/2023',y:[40.88,40.92,40.88,40.92]},{ x:'05/25/2023',y:[40.94,40.97,40.94,40.97]},{ x:'05/26/2023',y:[40.84,40.89,40.84,40.89]},{ x:'05/29/2023',y:[40.79,40.79,40.68,40.73]},{ x:'05/30/2023',y:[40.71,40.71,40.62,40.68]},{ x:'05/31/2023',y:[40.81,40.87,40.81,40.87]},{ x:'06/01/2023',y:[40.86,40.86,40.84,40.85]},{ x:'06/02/2023',y:[40.90,40.90,40.78,40.80]},{ x:'06/05/2023',y:[40.84,40.84,40.82,40.82]},{ x:'06/06/2023',y:[40.84,40.89,40.84,40.89]},{ x:'06/07/2023',y:[40.90,40.90,40.89,40.90]},{ x:'06/08/2023',y:[40.93,40.97,40.93,40.94]},{ x:'06/09/2023',y:[40.91,40.98,40.91,40.96]},{ x:'06/12/2023',y:[40.92,40.99,40.92,40.99]},{ x:'06/13/2023',y:[40.93,40.94,40.93,40.94]},{ x:'06/14/2023',y:[40.92,40.95,40.92,40.95]},{ x:'06/15/2023',y:[40.99,40.99,40.96,40.99]},{ x:'06/16/2023',y:[40.94,40.95,40.94,40.95]},{ x:'06/19/2023',y:[41.01,41.06,41.01,41.06]},{ x:'06/20/2023',y:[41.08,41.11,41.07,41.11]},{ x:'06/21/2023',y:[41.31,41.31,41.28,41.28]},{ x:'06/26/2023',y:[41.36,41.38,41.36,41.38]},{ x:'06/27/2023',y:[41.39,41.40,41.39,41.39]},{ x:'06/28/2023',y:[41.36,41.45,41.36,41.44]},{ x:'06/29/2023',y:[41.47,41.48,41.44,41.48]},{ x:'06/30/2023',y:[41.49,41.53,41.49,41.51]},{ x:'07/03/2023',y:[41.55,41.56,41.55,41.56]},{ x:'07/04/2023',y:[41.54,41.59,41.54,41.59]},{ x:'07/05/2023',y:[41.56,41.57,41.53,41.53]},{ x:'07/06/2023',y:[41.66,41.74,41.66,41.72]},{ x:'07/07/2023',y:[41.76,41.84,41.76,41.82]},{ x:'07/10/2023',y:[41.82,41.91,41.82,41.91]},{ x:'07/11/2023',y:[41.95,41.95,41.89,41.91]},{ x:'07/12/2023',y:[41.83,41.84,41.77,41.79]},{ x:'07/13/2023',y:[41.78,41.78,41.62,41.62]},{ x:'07/14/2023',y:[41.45,41.45,41.26,41.26]},{ x:'07/17/2023',y:[41.41,41.54,41.40,41.54]},{ x:'07/18/2023',y:[41.74,41.75,41.62,41.66]},{ x:'07/19/2023',y:[41.71,41.81,41.71,41.81]},{ x:'07/20/2023',y:[41.81,41.81,41.77,41.77]},{ x:'07/21/2023',y:[41.93,42.00,41.92,42.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00865b 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());