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/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]},{ x:'03/14/2023',y:[11.29,11.29,11.14,11.18]},{ x:'03/15/2023',y:[11.20,11.30,11.19,11.27]},{ x:'03/16/2023',y:[11.27,11.34,11.24,11.24]},{ x:'03/17/2023',y:[11.24,11.29,11.18,11.20]},{ x:'03/20/2023',y:[11.20,11.20,11.03,11.04]},{ x:'03/21/2023',y:[10.99,11.03,10.94,10.96]},{ x:'03/22/2023',y:[10.99,11.15,10.99,11.11]},{ x:'03/23/2023',y:[11.05,11.06,11.00,11.02]},{ x:'03/24/2023',y:[11.06,11.13,11.06,11.11]},{ x:'03/27/2023',y:[11.13,11.17,11.12,11.15]},{ x:'03/28/2023',y:[11.18,11.24,11.16,11.22]},{ x:'03/29/2023',y:[11.20,11.21,11.16,11.17]},{ x:'03/30/2023',y:[11.24,11.39,11.22,11.37]},{ x:'03/31/2023',y:[11.37,11.40,11.33,11.38]},{ x:'04/06/2023',y:[11.50,11.56,11.45,11.55]},{ x:'04/07/2023',y:[11.49,11.49,11.40,11.42]},{ x:'04/10/2023',y:[11.49,11.49,11.42,11.45]},{ x:'04/11/2023',y:[11.44,11.45,11.36,11.38]},{ x:'04/12/2023',y:[11.42,11.48,11.42,11.47]} ] }], 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());