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/21/2023',y:[14.50,14.51,14.42,14.42]},{ x:'04/24/2023',y:[14.39,14.39,14.34,14.35]},{ x:'04/25/2023',y:[14.38,14.39,14.28,14.29]},{ x:'04/26/2023',y:[14.24,14.24,14.19,14.21]},{ x:'04/27/2023',y:[14.14,14.17,14.12,14.17]},{ x:'04/28/2023',y:[14.27,14.33,14.27,14.31]},{ x:'05/02/2023',y:[14.53,14.62,14.51,14.62]},{ x:'05/03/2023',y:[14.51,14.51,14.44,14.46]},{ x:'05/04/2023',y:[14.45,14.47,14.41,14.47]},{ x:'05/05/2023',y:[14.46,14.46,14.41,14.42]},{ x:'05/08/2023',y:[14.70,14.77,14.70,14.75]},{ x:'05/09/2023',y:[14.88,14.95,14.88,14.93]},{ x:'05/10/2023',y:[14.93,14.93,14.83,14.85]},{ x:'05/11/2023',y:[14.88,14.90,14.86,14.87]},{ x:'05/12/2023',y:[14.89,14.94,14.89,14.93]},{ x:'05/15/2023',y:[14.78,14.78,14.74,14.76]},{ x:'05/16/2023',y:[14.84,14.90,14.84,14.87]},{ x:'05/17/2023',y:[14.94,15.00,14.94,14.98]},{ x:'05/18/2023',y:[15.12,15.30,15.12,15.29]},{ x:'05/19/2023',y:[15.54,15.70,15.54,15.64]},{ x:'05/22/2023',y:[15.54,15.61,15.54,15.59]},{ x:'05/23/2023',y:[15.74,15.80,15.73,15.77]},{ x:'05/24/2023',y:[15.72,15.72,15.60,15.64]},{ x:'05/25/2023',y:[16.29,16.60,16.29,16.54]},{ x:'05/26/2023',y:[16.65,16.80,16.65,16.67]},{ x:'05/29/2023',y:[17.07,17.24,17.07,17.15]},{ x:'05/30/2023',y:[17.17,17.22,17.11,17.15]},{ x:'05/31/2023',y:[17.22,17.25,17.21,17.25]},{ x:'06/01/2023',y:[17.01,17.01,16.90,16.93]},{ x:'06/02/2023',y:[17.23,17.34,17.22,17.34]},{ x:'06/05/2023',y:[17.41,17.45,17.40,17.42]},{ x:'06/06/2023',y:[17.41,17.45,17.41,17.45]},{ x:'06/07/2023',y:[17.56,17.70,17.56,17.66]},{ x:'06/08/2023',y:[17.58,17.58,17.46,17.48]},{ x:'06/09/2023',y:[17.85,18.06,17.85,18.04]},{ x:'06/12/2023',y:[18.14,18.22,18.09,18.13]},{ x:'06/13/2023',y:[18.34,18.57,18.34,18.54]},{ x:'06/14/2023',y:[18.74,18.93,18.74,18.92]},{ x:'06/15/2023',y:[19.00,19.15,19.00,19.12]},{ x:'06/16/2023',y:[19.10,19.10,18.96,18.99]},{ x:'06/19/2023',y:[19.05,19.12,19.05,19.09]},{ x:'06/20/2023',y:[19.09,19.09,18.98,19.00]},{ x:'06/21/2023',y:[19.25,19.45,19.25,19.42]},{ x:'06/26/2023',y:[18.77,18.87,18.63,18.71]},{ x:'06/27/2023',y:[18.18,18.39,18.18,18.29]},{ x:'06/28/2023',y:[18.55,18.59,18.55,18.57]},{ x:'06/29/2023',y:[18.73,18.94,18.73,18.83]},{ x:'06/30/2023',y:[18.82,18.85,18.79,18.85]},{ x:'07/03/2023',y:[19.29,19.29,19.21,19.25]},{ x:'07/04/2023',y:[19.47,19.55,19.43,19.47]},{ x:'07/05/2023',y:[19.47,19.49,19.43,19.43]},{ x:'07/06/2023',y:[19.38,19.50,19.37,19.43]},{ x:'07/07/2023',y:[19.28,19.31,19.24,19.28]},{ x:'07/10/2023',y:[19.28,19.35,19.28,19.33]},{ x:'07/11/2023',y:[19.33,19.41,19.32,19.38]},{ x:'07/12/2023',y:[19.42,19.43,19.38,19.39]},{ x:'07/13/2023',y:[19.62,19.76,19.62,19.70]},{ x:'07/14/2023',y:[19.94,19.97,19.91,19.95]},{ x:'07/17/2023',y:[19.94,19.94,19.86,19.89]},{ x:'07/18/2023',y:[20.09,20.15,20.07,20.13]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00895 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());