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:[40.80,40.80,40.45,40.47]},{ x:'11/15/2022',y:[40.42,40.48,40.41,40.48]},{ x:'11/16/2022',y:[40.40,40.60,40.40,40.59]},{ x:'11/17/2022',y:[40.60,40.61,40.53,40.61]},{ x:'11/18/2022',y:[40.57,40.65,40.57,40.65]},{ x:'11/21/2022',y:[40.60,40.60,40.58,40.60]},{ x:'11/22/2022',y:[40.60,40.61,40.59,40.61]},{ x:'11/23/2022',y:[40.55,40.55,40.54,40.54]},{ x:'11/24/2022',y:[40.50,40.50,40.42,40.44]},{ x:'11/25/2022',y:[40.25,40.25,40.17,40.22]},{ x:'11/28/2022',y:[40.24,40.46,40.24,40.40]},{ x:'11/29/2022',y:[40.40,40.40,40.36,40.38]},{ x:'11/30/2022',y:[40.30,40.32,40.30,40.32]},{ x:'12/01/2022',y:[39.97,39.99,39.93,39.93]},{ x:'12/02/2022',y:[39.92,39.92,39.89,39.89]},{ x:'12/05/2022',y:[39.74,39.81,39.74,39.78]},{ x:'12/06/2022',y:[39.80,39.90,39.80,39.90]},{ x:'12/07/2022',y:[40.00,40.02,40.00,40.02]},{ x:'12/08/2022',y:[40.05,40.05,40.05,40.05]},{ x:'12/09/2022',y:[39.98,40.01,39.97,40.01]},{ x:'12/12/2022',y:[40.04,40.15,40.04,40.15]},{ x:'12/13/2022',y:[40.13,40.18,40.13,40.18]},{ x:'12/14/2022',y:[40.17,40.17,40.02,40.03]},{ x:'12/15/2022',y:[40.06,40.07,40.06,40.07]},{ x:'12/16/2022',y:[40.09,40.31,40.07,40.31]},{ x:'12/19/2022',y:[40.27,40.31,40.24,40.31]},{ x:'12/20/2022',y:[40.25,40.25,40.22,40.22]},{ x:'12/21/2022',y:[40.12,40.14,40.12,40.14]},{ x:'12/22/2022',y:[40.14,40.15,40.14,40.15]},{ x:'12/23/2022',y:[40.25,40.27,40.25,40.27]},{ x:'12/26/2022',y:[40.16,40.20,40.16,40.20]},{ x:'12/27/2022',y:[40.18,40.21,40.18,40.21]},{ x:'12/28/2022',y:[40.12,40.22,40.12,40.22]},{ x:'12/29/2022',y:[40.22,40.23,40.22,40.23]},{ x:'12/30/2022',y:[40.23,40.25,40.23,40.25]},{ x:'01/03/2023',y:[40.25,40.25,40.19,40.19]},{ x:'01/04/2023',y:[40.18,40.19,40.18,40.19]},{ x:'01/05/2023',y:[40.18,40.19,40.18,40.19]},{ x:'01/06/2023',y:[40.20,40.29,40.19,40.28]},{ x:'01/09/2023',y:[40.08,40.08,40.07,40.08]},{ x:'01/10/2023',y:[40.00,40.00,39.95,39.96]},{ x:'01/11/2023',y:[39.95,39.95,39.94,39.95]},{ x:'01/12/2023',y:[39.86,39.89,39.86,39.89]},{ x:'01/13/2023',y:[39.84,39.90,39.84,39.90]},{ x:'01/16/2023',y:[39.77,39.77,39.71,39.71]},{ x:'01/17/2023',y:[39.76,39.82,39.76,39.82]},{ x:'01/30/2023',y:[39.63,39.65,39.60,39.64]},{ x:'01/31/2023',y:[39.55,39.55,39.45,39.48]},{ x:'02/01/2023',y:[39.55,39.55,39.44,39.48]},{ x:'02/02/2023',y:[39.11,39.11,39.03,39.03]},{ x:'02/03/2023',y:[39.07,39.10,39.05,39.07]},{ x:'02/06/2023',y:[39.35,39.38,39.34,39.35]},{ x:'02/07/2023',y:[39.50,39.51,39.43,39.51]},{ x:'02/08/2023',y:[39.45,39.52,39.45,39.52]},{ x:'02/09/2023',y:[39.53,39.56,39.53,39.56]},{ x:'02/10/2023',y:[39.56,39.62,39.56,39.61]},{ x:'02/13/2023',y:[39.70,39.79,39.70,39.79]},{ x:'02/14/2023',y:[39.77,39.77,39.68,39.68]},{ x:'02/15/2023',y:[39.76,39.91,39.76,39.91]},{ x:'02/16/2023',y:[39.90,39.92,39.77,39.83]} ] }], 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());