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/11/2022',y:[38.00,38.00,37.61,37.86]},{ x:'11/14/2022',y:[37.90,38.16,37.90,38.10]},{ x:'11/15/2022',y:[38.10,38.25,37.86,38.22]},{ x:'11/16/2022',y:[38.23,38.25,38.00,38.21]},{ x:'11/17/2022',y:[38.17,38.30,38.00,38.24]},{ x:'11/18/2022',y:[38.31,38.46,38.15,38.24]},{ x:'11/21/2022',y:[38.26,38.30,38.16,38.23]},{ x:'11/22/2022',y:[38.28,38.28,38.05,38.18]},{ x:'11/23/2022',y:[38.30,38.49,38.29,38.48]},{ x:'11/24/2022',y:[38.55,38.86,38.55,38.86]},{ x:'11/25/2022',y:[38.86,38.89,38.66,38.73]},{ x:'11/28/2022',y:[38.40,38.73,38.29,38.68]},{ x:'11/29/2022',y:[38.67,38.85,38.49,38.85]},{ x:'11/30/2022',y:[38.84,39.18,38.68,39.18]},{ x:'12/01/2022',y:[39.40,39.54,39.19,39.38]},{ x:'12/02/2022',y:[39.40,39.44,39.33,39.39]},{ x:'12/05/2022',y:[39.49,39.62,39.41,39.48]},{ x:'12/06/2022',y:[39.48,39.48,39.01,39.02]},{ x:'12/07/2022',y:[39.03,39.13,38.76,38.88]},{ x:'12/08/2022',y:[38.82,38.88,38.50,38.68]},{ x:'12/09/2022',y:[38.90,38.94,38.76,38.86]},{ x:'12/12/2022',y:[38.87,38.87,38.50,38.82]},{ x:'12/13/2022',y:[39.04,39.04,38.61,38.68]},{ x:'12/14/2022',y:[38.97,39.13,38.85,39.03]},{ x:'12/15/2022',y:[39.03,39.11,38.90,39.04]},{ x:'12/16/2022',y:[37.57,37.58,37.06,37.25]},{ x:'12/19/2022',y:[37.20,37.28,36.97,37.18]},{ x:'12/20/2022',y:[37.19,37.20,36.69,36.76]},{ x:'12/21/2022',y:[36.79,36.80,36.63,36.66]},{ x:'12/22/2022',y:[36.99,37.14,36.83,37.10]},{ x:'12/23/2022',y:[36.83,37.10,36.66,37.10]},{ x:'12/26/2022',y:[37.10,37.15,37.02,37.15]},{ x:'12/27/2022',y:[37.18,37.24,37.04,37.13]},{ x:'12/28/2022',y:[36.99,36.99,36.78,36.88]},{ x:'12/29/2022',y:[36.70,36.83,36.48,36.72]},{ x:'12/30/2022',y:[36.80,36.95,36.80,36.81]},{ x:'01/03/2023',y:[36.80,36.99,36.57,36.94]},{ x:'01/04/2023',y:[36.80,36.98,36.80,36.93]},{ x:'01/05/2023',y:[37.01,37.11,36.96,37.01]},{ x:'01/06/2023',y:[37.01,37.15,37.01,37.10]},{ x:'01/09/2023',y:[37.50,37.50,37.31,37.48]},{ x:'01/10/2023',y:[37.48,37.60,37.43,37.55]},{ x:'01/11/2023',y:[37.58,37.60,37.44,37.47]},{ x:'01/12/2023',y:[37.48,37.48,37.23,37.29]},{ x:'01/13/2023',y:[37.39,37.53,37.26,37.31]},{ x:'01/16/2023',y:[37.32,37.60,37.32,37.39]},{ x:'01/17/2023',y:[37.48,37.50,37.42,37.47]},{ x:'01/30/2023',y:[37.94,38.08,37.85,37.98]},{ x:'01/31/2023',y:[37.98,38.09,37.90,37.95]},{ x:'02/01/2023',y:[38.00,38.07,37.94,38.06]},{ x:'02/02/2023',y:[38.13,38.38,38.09,38.37]},{ x:'02/03/2023',y:[38.39,38.47,38.16,38.39]},{ x:'02/06/2023',y:[38.39,38.47,38.33,38.40]},{ x:'02/07/2023',y:[38.40,38.50,38.36,38.50]},{ x:'02/08/2023',y:[38.57,38.66,38.50,38.64]},{ x:'02/09/2023',y:[38.59,38.63,38.50,38.61]},{ x:'02/10/2023',y:[38.58,38.64,38.33,38.39]},{ x:'02/13/2023',y:[38.38,38.49,38.19,38.48]},{ x:'02/14/2023',y:[38.53,38.68,38.53,38.60]},{ x:'02/15/2023',y:[38.60,38.60,38.40,38.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00713 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());