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/10/2022',y:[39.48,39.57,39.46,39.52]},{ x:'11/11/2022',y:[39.54,39.54,38.87,38.87]},{ x:'11/14/2022',y:[38.87,38.90,38.61,38.64]},{ x:'11/15/2022',y:[38.70,38.72,38.68,38.72]},{ x:'11/16/2022',y:[38.79,38.99,38.79,38.99]},{ x:'11/17/2022',y:[38.90,38.91,38.89,38.90]},{ x:'11/18/2022',y:[38.93,38.93,38.91,38.91]},{ x:'11/21/2022',y:[38.77,38.96,38.77,38.96]},{ x:'11/22/2022',y:[38.89,38.90,38.88,38.88]},{ x:'11/23/2022',y:[38.88,38.93,38.82,38.93]},{ x:'11/24/2022',y:[38.85,38.85,38.65,38.65]},{ x:'11/25/2022',y:[38.58,38.64,38.52,38.52]},{ x:'11/28/2022',y:[38.68,38.73,38.68,38.70]},{ x:'11/29/2022',y:[38.80,38.80,38.67,38.67]},{ x:'11/30/2022',y:[38.65,38.66,38.56,38.56]},{ x:'12/01/2022',y:[38.52,38.53,38.36,38.37]},{ x:'12/02/2022',y:[38.38,38.39,38.35,38.37]},{ x:'12/05/2022',y:[38.35,38.35,38.20,38.20]},{ x:'12/06/2022',y:[38.26,38.29,38.20,38.28]},{ x:'12/07/2022',y:[38.34,38.41,38.34,38.38]},{ x:'12/08/2022',y:[38.38,38.43,38.37,38.43]},{ x:'12/09/2022',y:[38.42,38.43,38.42,38.43]},{ x:'12/12/2022',y:[38.45,38.47,38.45,38.47]},{ x:'12/13/2022',y:[38.49,38.50,38.47,38.49]},{ x:'12/14/2022',y:[38.50,38.50,38.36,38.36]},{ x:'12/15/2022',y:[38.34,38.41,38.34,38.41]},{ x:'12/16/2022',y:[38.42,38.65,38.42,38.65]},{ x:'12/19/2022',y:[38.65,38.67,38.62,38.66]},{ x:'12/20/2022',y:[38.69,38.69,38.60,38.63]},{ x:'12/21/2022',y:[38.60,38.60,38.52,38.55]},{ x:'12/22/2022',y:[38.55,38.56,38.52,38.56]},{ x:'12/23/2022',y:[38.61,38.65,38.61,38.65]},{ x:'12/26/2022',y:[38.64,38.67,38.55,38.65]},{ x:'12/27/2022',y:[38.57,38.58,38.55,38.56]},{ x:'12/28/2022',y:[38.51,38.55,38.51,38.51]},{ x:'12/29/2022',y:[38.55,38.61,38.55,38.60]},{ x:'12/30/2022',y:[38.55,38.56,38.54,38.54]},{ x:'01/03/2023',y:[38.54,38.54,38.50,38.50]},{ x:'01/04/2023',y:[38.60,38.60,38.53,38.54]},{ x:'01/05/2023',y:[38.54,38.58,38.52,38.56]},{ x:'01/06/2023',y:[38.52,38.55,38.52,38.52]},{ x:'01/09/2023',y:[38.54,38.54,38.43,38.44]},{ x:'01/10/2023',y:[38.40,38.40,38.34,38.36]},{ x:'01/11/2023',y:[38.35,38.37,38.35,38.37]},{ x:'01/12/2023',y:[38.32,38.34,38.31,38.33]},{ x:'01/13/2023',y:[38.27,38.31,38.26,38.30]},{ x:'01/16/2023',y:[38.30,38.30,38.11,38.13]},{ x:'01/17/2023',y:[38.19,38.23,38.19,38.23]},{ x:'01/30/2023',y:[38.20,38.20,38.00,38.00]},{ x:'01/31/2023',y:[37.75,37.76,37.69,37.72]},{ x:'02/01/2023',y:[37.72,37.74,37.70,37.70]},{ x:'02/02/2023',y:[37.73,37.73,37.35,37.35]},{ x:'02/03/2023',y:[37.46,37.46,37.38,37.38]},{ x:'02/06/2023',y:[37.52,37.60,37.47,37.51]},{ x:'02/07/2023',y:[37.52,37.59,37.52,37.59]},{ x:'02/08/2023',y:[37.58,37.65,37.58,37.65]},{ x:'02/09/2023',y:[37.65,37.66,37.64,37.65]},{ x:'02/10/2023',y:[37.55,37.73,37.55,37.70]},{ x:'02/13/2023',y:[37.70,37.85,37.70,37.85]},{ x:'02/14/2023',y:[37.75,37.80,37.74,37.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00694b 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());