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:'12/23/2022',y:[14.70,14.74,14.69,14.74]},{ x:'12/26/2022',y:[14.75,14.75,14.70,14.70]},{ x:'12/27/2022',y:[14.85,14.85,14.81,14.83]},{ x:'12/28/2022',y:[14.65,14.67,14.63,14.63]},{ x:'12/29/2022',y:[14.59,14.59,14.48,14.49]},{ x:'12/30/2022',y:[14.65,14.66,14.62,14.62]},{ x:'01/03/2023',y:[14.74,14.77,14.74,14.77]},{ x:'01/04/2023',y:[14.81,14.84,14.81,14.83]},{ x:'01/05/2023',y:[14.91,14.91,14.86,14.87]},{ x:'01/06/2023',y:[14.93,14.93,14.89,14.91]},{ x:'01/09/2023',y:[15.31,15.33,15.27,15.31]},{ x:'01/10/2023',y:[15.31,15.31,15.20,15.22]},{ x:'01/11/2023',y:[15.25,15.25,15.24,15.24]},{ x:'01/12/2023',y:[15.33,15.38,15.33,15.37]},{ x:'01/13/2023',y:[15.60,15.61,15.59,15.60]},{ x:'01/16/2023',y:[15.72,15.72,15.66,15.67]},{ x:'01/17/2023',y:[15.69,15.69,15.68,15.68]},{ x:'01/30/2023',y:[15.68,15.87,15.08,15.84]},{ x:'01/31/2023',y:[15.81,15.82,15.80,15.80]},{ x:'02/01/2023',y:[15.86,16.00,15.86,15.97]},{ x:'02/02/2023',y:[16.08,16.08,16.04,16.06]},{ x:'02/03/2023',y:[16.18,16.22,16.15,16.16]},{ x:'02/06/2023',y:[16.11,16.11,16.05,16.05]},{ x:'02/07/2023',y:[16.04,16.04,16.00,16.00]},{ x:'02/08/2023',y:[15.93,15.95,15.92,15.95]},{ x:'02/09/2023',y:[15.67,15.67,15.65,15.66]},{ x:'02/10/2023',y:[15.40,15.47,15.40,15.44]},{ x:'02/13/2023',y:[15.46,15.55,15.46,15.55]},{ x:'02/14/2023',y:[15.59,15.72,15.59,15.72]},{ x:'02/15/2023',y:[15.86,15.86,15.83,15.85]},{ x:'02/16/2023',y:[16.16,16.16,16.12,16.14]},{ x:'02/17/2023',y:[15.65,15.98,15.65,15.96]},{ x:'02/20/2023',y:[16.02,16.12,16.02,16.10]},{ x:'02/21/2023',y:[16.00,16.09,16.00,16.09]},{ x:'02/22/2023',y:[15.79,15.79,15.77,15.78]},{ x:'02/23/2023',y:[16.13,16.13,15.88,15.90]},{ x:'02/24/2023',y:[16.18,16.18,16.12,16.14]},{ x:'03/01/2023',y:[16.08,16.08,15.89,15.92]},{ x:'03/02/2023',y:[15.91,15.91,15.83,15.86]},{ x:'03/03/2023',y:[15.94,15.96,15.90,15.94]},{ x:'03/06/2023',y:[16.05,16.14,16.05,16.13]},{ x:'03/07/2023',y:[16.13,16.21,16.13,16.18]},{ x:'03/08/2023',y:[16.09,16.10,16.08,16.10]},{ x:'03/09/2023',y:[16.11,16.11,16.09,16.10]},{ x:'03/10/2023',y:[15.86,15.86,15.82,15.83]},{ x:'03/13/2023',y:[15.60,15.60,15.50,15.58]},{ x:'03/14/2023',y:[15.30,15.31,15.26,15.26]},{ x:'03/15/2023',y:[15.26,15.30,15.26,15.28]},{ x:'03/16/2023',y:[15.28,15.28,15.20,15.22]},{ x:'03/17/2023',y:[15.21,15.21,15.08,15.13]},{ x:'03/20/2023',y:[15.16,15.16,15.11,15.12]},{ x:'03/21/2023',y:[15.07,15.10,15.07,15.09]},{ x:'03/22/2023',y:[15.23,15.25,15.23,15.25]},{ x:'03/23/2023',y:[15.00,15.00,14.98,15.00]},{ x:'03/24/2023',y:[15.18,15.18,14.97,15.00]},{ x:'03/27/2023',y:[15.00,15.03,15.00,15.02]},{ x:'03/28/2023',y:[14.93,14.95,14.93,14.95]},{ x:'03/29/2023',y:[15.03,15.08,15.03,15.08]},{ x:'03/30/2023',y:[15.25,15.26,15.23,15.26]},{ x:'03/31/2023',y:[15.47,15.49,15.46,15.46]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00910 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());