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/22/2022',y:[15.48,15.48,15.30,15.30]},{ x:'11/23/2022',y:[15.68,15.68,15.60,15.63]},{ x:'11/24/2022',y:[15.78,15.82,15.75,15.82]},{ x:'11/25/2022',y:[15.89,15.89,15.82,15.84]},{ x:'11/28/2022',y:[15.50,15.53,15.50,15.53]},{ x:'11/29/2022',y:[15.25,15.33,15.25,15.33]},{ x:'11/30/2022',y:[15.29,15.29,15.23,15.27]},{ x:'12/01/2022',y:[15.97,16.04,15.92,15.99]},{ x:'12/02/2022',y:[15.73,15.76,15.69,15.69]},{ x:'12/05/2022',y:[15.67,15.73,15.67,15.73]},{ x:'12/06/2022',y:[15.49,15.49,15.22,15.49]},{ x:'12/07/2022',y:[15.18,15.21,15.18,15.20]},{ x:'12/08/2022',y:[15.05,15.11,15.03,15.11]},{ x:'12/09/2022',y:[15.48,15.54,15.45,15.54]},{ x:'12/12/2022',y:[15.32,15.38,15.32,15.37]},{ x:'12/13/2022',y:[15.57,15.71,15.57,15.65]},{ x:'12/14/2022',y:[15.65,15.87,15.65,15.85]},{ x:'12/15/2022',y:[15.68,15.68,15.57,15.60]},{ x:'12/16/2022',y:[15.34,15.34,15.05,15.05]},{ x:'12/19/2022',y:[15.02,15.04,15.01,15.04]},{ x:'12/20/2022',y:[14.84,14.84,14.58,14.66]},{ x:'12/21/2022',y:[14.78,14.80,14.75,14.76]},{ x:'12/22/2022',y:[14.96,15.00,14.93,15.00]},{ x:'12/23/2022',y:[14.49,14.49,14.43,14.43]},{ x:'12/26/2022',y:[14.48,14.50,14.47,14.47]},{ x:'12/27/2022',y:[14.56,14.59,14.56,14.59]},{ x:'12/28/2022',y:[14.38,14.38,14.16,14.20]},{ x:'12/29/2022',y:[14.09,14.09,14.04,14.06]},{ x:'12/30/2022',y:[14.38,14.48,14.38,14.40]},{ x:'01/03/2023',y:[14.39,14.47,14.39,14.41]},{ x:'01/04/2023',y:[14.28,14.30,14.28,14.30]},{ x:'01/05/2023',y:[14.51,14.59,14.50,14.54]},{ x:'01/06/2023',y:[14.44,14.47,14.44,14.47]},{ x:'01/09/2023',y:[14.96,14.99,14.90,14.99]},{ x:'01/10/2023',y:[15.12,15.12,15.02,15.02]},{ x:'01/11/2023',y:[15.30,15.30,15.25,15.28]},{ x:'01/12/2023',y:[15.45,15.46,15.44,15.46]},{ x:'01/13/2023',y:[15.54,15.58,15.50,15.50]},{ x:'01/16/2023',y:[15.64,15.64,15.60,15.60]},{ x:'01/17/2023',y:[15.63,15.63,15.52,15.52]},{ x:'01/30/2023',y:[16.24,16.26,16.22,16.26]},{ x:'01/31/2023',y:[15.89,15.89,15.84,15.87]},{ x:'02/01/2023',y:[15.96,16.14,15.96,16.12]},{ x:'02/02/2023',y:[17.05,17.05,16.57,16.65]},{ x:'02/03/2023',y:[16.92,16.93,16.79,16.81]},{ x:'02/06/2023',y:[16.79,16.81,16.72,16.72]},{ x:'02/07/2023',y:[16.74,16.74,16.65,16.65]},{ x:'02/08/2023',y:[17.11,17.35,17.10,17.14]},{ x:'02/09/2023',y:[17.04,17.04,16.88,16.89]},{ x:'02/10/2023',y:[16.86,16.92,16.85,16.85]},{ x:'02/13/2023',y:[16.65,16.76,16.65,16.74]},{ x:'02/14/2023',y:[16.99,17.04,16.97,17.04]},{ x:'02/15/2023',y:[17.20,17.27,17.12,17.16]},{ x:'02/16/2023',y:[17.30,17.54,17.30,17.45]},{ x:'02/17/2023',y:[17.02,17.02,16.93,16.98]},{ x:'02/20/2023',y:[16.63,16.95,16.63,16.95]},{ x:'02/21/2023',y:[16.83,16.84,16.80,16.84]},{ x:'02/22/2023',y:[16.43,16.49,16.41,16.49]},{ x:'02/23/2023',y:[16.63,16.69,16.50,16.69]},{ x:'02/24/2023',y:[16.66,16.83,16.66,16.83]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00911 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());