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:'12/05/2022',y:[11.78,12.09,11.70,12.07]},{ x:'12/06/2022',y:[12.09,12.12,11.88,11.91]},{ x:'12/07/2022',y:[11.61,11.78,11.55,11.76]},{ x:'12/08/2022',y:[11.76,12.08,11.64,12.01]},{ x:'12/09/2022',y:[11.92,11.96,11.82,11.95]},{ x:'12/12/2022',y:[11.88,11.95,11.78,11.89]},{ x:'12/13/2022',y:[11.68,11.77,11.56,11.58]},{ x:'12/14/2022',y:[11.69,11.79,11.69,11.72]},{ x:'12/15/2022',y:[11.71,11.82,11.68,11.75]},{ x:'12/16/2022',y:[11.56,11.81,11.55,11.70]},{ x:'12/19/2022',y:[11.68,11.75,11.59,11.71]},{ x:'12/20/2022',y:[11.53,11.53,11.07,11.09]},{ x:'12/21/2022',y:[11.20,11.30,11.15,11.19]},{ x:'12/22/2022',y:[11.23,11.30,11.18,11.18]},{ x:'12/23/2022',y:[11.09,11.15,11.04,11.05]},{ x:'12/26/2022',y:[11.08,11.23,10.98,10.99]},{ x:'12/27/2022',y:[10.81,10.88,10.74,10.88]},{ x:'12/28/2022',y:[10.91,11.02,10.87,10.99]},{ x:'12/29/2022',y:[10.95,11.10,10.95,11.03]},{ x:'12/30/2022',y:[11.04,11.14,11.02,11.13]},{ x:'01/03/2023',y:[11.05,11.21,11.01,11.18]},{ x:'01/04/2023',y:[11.39,11.51,11.36,11.49]},{ x:'01/05/2023',y:[11.54,11.63,11.54,11.58]},{ x:'01/06/2023',y:[11.62,11.67,11.59,11.61]},{ x:'01/09/2023',y:[11.67,11.68,11.56,11.59]},{ x:'01/10/2023',y:[11.59,11.59,11.41,11.43]},{ x:'01/11/2023',y:[11.49,11.61,11.48,11.59]},{ x:'01/12/2023',y:[11.59,11.62,11.53,11.55]},{ x:'01/13/2023',y:[11.58,11.60,11.55,11.56]},{ x:'01/16/2023',y:[11.58,11.58,11.47,11.52]},{ x:'01/17/2023',y:[11.52,11.58,11.52,11.58]},{ x:'01/30/2023',y:[11.96,12.06,11.91,11.94]},{ x:'01/31/2023',y:[11.84,11.84,11.73,11.75]},{ x:'02/01/2023',y:[11.89,11.95,11.78,11.81]},{ x:'02/02/2023',y:[11.56,11.66,11.52,11.62]},{ x:'02/03/2023',y:[11.55,11.60,11.54,11.55]},{ x:'02/06/2023',y:[11.55,11.62,11.49,11.60]},{ x:'02/07/2023',y:[11.65,11.68,11.56,11.60]},{ x:'02/08/2023',y:[11.49,11.55,11.47,11.50]},{ x:'02/09/2023',y:[11.52,11.55,11.48,11.50]},{ x:'02/10/2023',y:[11.46,11.47,11.42,11.44]},{ x:'02/13/2023',y:[11.43,11.43,11.35,11.39]},{ x:'02/14/2023',y:[11.42,11.48,11.41,11.45]},{ x:'02/15/2023',y:[11.44,11.51,11.39,11.49]},{ x:'02/16/2023',y:[11.51,11.58,11.51,11.55]},{ x:'02/17/2023',y:[11.55,11.55,11.49,11.51]},{ x:'02/20/2023',y:[11.52,11.64,11.52,11.64]},{ x:'02/21/2023',y:[11.70,11.73,11.67,11.67]},{ x:'02/22/2023',y:[11.61,11.61,11.53,11.54]},{ x:'02/23/2023',y:[11.46,11.52,11.39,11.40]},{ x:'02/24/2023',y:[11.40,11.44,11.35,11.38]},{ x:'03/01/2023',y:[11.10,11.28,11.10,11.26]},{ x:'03/02/2023',y:[11.23,11.36,11.23,11.25]},{ x:'03/03/2023',y:[11.26,11.30,11.19,11.21]},{ x:'03/06/2023',y:[11.22,11.33,11.22,11.32]},{ x:'03/07/2023',y:[11.25,11.29,11.23,11.25]},{ x:'03/08/2023',y:[11.22,11.25,11.18,11.21]},{ x:'03/09/2023',y:[11.31,11.31,11.23,11.25]},{ x:'03/10/2023',y:[11.23,11.24,11.19,11.21]},{ x:'03/13/2023',y:[11.18,11.33,11.14,11.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00885 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());