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:'11/14/2022',y:[35.59,35.80,35.59,35.76]},{ x:'11/15/2022',y:[35.41,35.69,35.41,35.69]},{ x:'11/16/2022',y:[35.36,35.45,35.36,35.45]},{ x:'11/17/2022',y:[35.71,35.71,35.71,35.71]},{ x:'11/18/2022',y:[35.55,35.61,35.55,35.61]},{ x:'11/21/2022',y:[34.70,35.55,34.70,35.55]},{ x:'11/22/2022',y:[35.60,35.60,35.53,35.53]},{ x:'11/23/2022',y:[35.61,35.64,35.61,35.64]},{ x:'11/24/2022',y:[35.77,35.77,35.72,35.72]},{ x:'11/25/2022',y:[35.70,35.70,35.64,35.64]},{ x:'11/28/2022',y:[35.78,35.78,35.78,35.78]},{ x:'11/29/2022',y:[35.72,35.72,35.72,35.72]},{ x:'11/30/2022',y:[35.52,35.52,35.50,35.52]},{ x:'12/01/2022',y:[35.60,35.60,35.60,35.60]},{ x:'12/02/2022',y:[35.75,35.78,35.74,35.77]},{ x:'12/05/2022',y:[35.72,35.80,35.70,35.79]},{ x:'12/06/2022',y:[35.43,35.58,35.43,35.58]},{ x:'12/07/2022',y:[35.90,35.90,35.85,35.89]},{ x:'12/08/2022',y:[36.20,36.26,36.20,36.25]},{ x:'12/09/2022',y:[36.10,36.12,36.10,36.12]},{ x:'12/12/2022',y:[36.00,36.11,36.00,36.09]},{ x:'12/13/2022',y:[35.94,35.94,35.94,35.94]},{ x:'12/14/2022',y:[36.11,36.11,36.10,36.10]},{ x:'12/15/2022',y:[36.16,36.18,36.16,36.16]},{ x:'12/16/2022',y:[36.20,36.30,36.20,36.22]},{ x:'12/19/2022',y:[36.10,36.12,36.09,36.10]},{ x:'12/20/2022',y:[35.87,35.90,35.83,35.83]},{ x:'12/21/2022',y:[35.56,35.57,35.50,35.56]},{ x:'12/22/2022',y:[35.67,35.69,35.63,35.66]},{ x:'12/23/2022',y:[35.76,35.76,35.76,35.76]},{ x:'12/26/2022',y:[35.58,35.62,35.58,35.62]},{ x:'12/27/2022',y:[35.62,35.63,35.62,35.62]},{ x:'12/28/2022',y:[35.38,35.41,35.38,35.40]},{ x:'12/29/2022',y:[35.44,35.44,35.41,35.41]},{ x:'12/30/2022',y:[35.53,35.53,35.52,35.52]},{ x:'01/03/2023',y:[35.53,35.53,35.46,35.48]},{ x:'01/04/2023',y:[35.59,35.62,35.59,35.61]},{ x:'01/05/2023',y:[35.71,35.76,35.71,35.76]},{ x:'01/06/2023',y:[35.73,35.73,35.72,35.72]},{ x:'01/09/2023',y:[35.84,35.89,35.84,35.89]},{ x:'01/10/2023',y:[35.92,35.92,35.90,35.91]},{ x:'01/11/2023',y:[35.78,35.78,35.72,35.74]},{ x:'01/12/2023',y:[35.91,35.93,35.91,35.92]},{ x:'01/13/2023',y:[36.10,36.13,36.10,36.13]},{ x:'01/16/2023',y:[35.94,35.94,35.88,35.88]},{ x:'01/17/2023',y:[35.92,35.95,35.92,35.95]},{ x:'01/30/2023',y:[35.95,35.95,35.78,35.81]},{ x:'01/31/2023',y:[35.90,35.90,35.83,35.84]},{ x:'02/01/2023',y:[36.01,36.04,36.01,36.03]},{ x:'02/02/2023',y:[35.87,35.96,35.87,35.92]},{ x:'02/03/2023',y:[36.07,36.07,36.01,36.01]},{ x:'02/06/2023',y:[36.04,36.04,35.77,35.87]},{ x:'02/07/2023',y:[35.85,36.04,35.85,36.00]},{ x:'02/08/2023',y:[36.00,36.00,35.85,35.87]},{ x:'02/09/2023',y:[35.92,35.95,35.88,35.91]},{ x:'02/10/2023',y:[35.90,35.90,35.78,35.84]},{ x:'02/13/2023',y:[35.78,35.78,35.68,35.70]},{ x:'02/14/2023',y:[35.84,35.84,35.77,35.80]},{ x:'02/15/2023',y:[35.80,35.83,35.77,35.82]},{ x:'02/16/2023',y:[35.37,35.37,35.05,35.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00780b 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());