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:[29.63,29.63,29.45,29.45]},{ x:'11/15/2022',y:[29.36,29.41,29.36,29.41]},{ x:'11/16/2022',y:[29.96,30.13,29.96,29.98]},{ x:'11/17/2022',y:[30.40,30.44,30.40,30.44]},{ x:'11/18/2022',y:[30.50,30.50,30.50,30.50]},{ x:'11/21/2022',y:[30.49,30.60,30.49,30.60]},{ x:'11/22/2022',y:[30.56,30.56,30.56,30.56]},{ x:'11/23/2022',y:[30.84,30.99,30.84,30.96]},{ x:'11/24/2022',y:[31.49,31.52,31.32,31.32]},{ x:'11/25/2022',y:[31.39,31.39,31.39,31.39]},{ x:'11/28/2022',y:[31.30,31.54,31.30,31.54]},{ x:'11/29/2022',y:[31.51,31.51,31.20,31.20]},{ x:'11/30/2022',y:[30.98,30.98,30.85,30.94]},{ x:'12/01/2022',y:[30.97,30.97,30.86,30.96]},{ x:'12/02/2022',y:[31.43,31.43,31.34,31.34]},{ x:'12/05/2022',y:[31.73,31.73,31.61,31.63]},{ x:'12/06/2022',y:[31.55,31.69,31.55,31.65]},{ x:'12/07/2022',y:[31.95,31.95,31.84,31.84]},{ x:'12/08/2022',y:[32.34,32.37,32.34,32.37]},{ x:'12/09/2022',y:[32.74,32.74,32.53,32.61]},{ x:'12/12/2022',y:[31.99,32.17,31.98,32.17]},{ x:'12/13/2022',y:[32.16,32.20,32.10,32.10]},{ x:'12/14/2022',y:[32.20,32.30,32.20,32.30]},{ x:'12/15/2022',y:[32.13,32.24,32.13,32.24]},{ x:'12/16/2022',y:[32.18,32.18,31.99,32.01]},{ x:'12/19/2022',y:[31.84,31.84,31.68,31.69]},{ x:'12/20/2022',y:[31.36,31.49,30.88,30.91]},{ x:'12/21/2022',y:[30.65,30.65,30.58,30.59]},{ x:'12/22/2022',y:[30.87,31.21,30.87,30.87]},{ x:'12/23/2022',y:[30.90,31.02,30.90,30.90]},{ x:'12/26/2022',y:[30.81,30.83,30.75,30.75]},{ x:'12/27/2022',y:[30.52,30.72,30.52,30.71]},{ x:'12/28/2022',y:[30.25,30.25,30.15,30.22]},{ x:'12/29/2022',y:[30.09,30.16,30.09,30.14]},{ x:'12/30/2022',y:[30.14,30.14,30.14,30.14]},{ x:'01/03/2023',y:[29.86,30.17,29.86,30.10]},{ x:'01/04/2023',y:[30.30,30.30,30.30,30.30]},{ x:'01/05/2023',y:[30.37,30.43,30.37,30.43]},{ x:'01/06/2023',y:[30.62,30.78,30.60,30.78]},{ x:'01/09/2023',y:[30.92,30.96,30.92,30.96]},{ x:'01/10/2023',y:[31.08,31.09,31.02,31.09]},{ x:'01/11/2023',y:[30.91,31.00,30.91,31.00]},{ x:'01/12/2023',y:[31.40,31.50,31.40,31.50]},{ x:'01/13/2023',y:[31.62,31.79,31.62,31.79]},{ x:'01/16/2023',y:[31.79,31.94,31.73,31.73]},{ x:'01/17/2023',y:[31.66,31.66,31.66,31.66]},{ x:'01/30/2023',y:[31.78,31.79,31.61,31.65]},{ x:'01/31/2023',y:[31.35,31.35,31.35,31.35]},{ x:'02/01/2023',y:[31.44,31.55,31.44,31.55]},{ x:'02/02/2023',y:[31.51,31.51,31.51,31.51]},{ x:'02/03/2023',y:[31.78,31.82,31.78,31.82]},{ x:'02/06/2023',y:[31.43,31.55,31.43,31.50]},{ x:'02/07/2023',y:[31.23,31.27,31.23,31.27]},{ x:'02/08/2023',y:[30.97,31.06,30.97,31.06]},{ x:'02/09/2023',y:[31.25,31.46,31.11,31.11]},{ x:'02/10/2023',y:[30.78,30.80,30.71,30.80]},{ x:'02/13/2023',y:[30.40,30.45,30.38,30.43]},{ x:'02/14/2023',y:[30.64,30.66,30.64,30.66]},{ x:'02/15/2023',y:[30.64,30.69,30.64,30.69]},{ x:'02/16/2023',y:[30.43,30.52,30.43,30.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00836b 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());