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:'02/10/2023',y:[36.57,36.66,36.57,36.66]},{ x:'02/13/2023',y:[36.68,36.75,36.68,36.75]},{ x:'02/14/2023',y:[36.74,36.74,36.73,36.74]},{ x:'02/15/2023',y:[36.78,36.83,36.78,36.83]},{ x:'02/16/2023',y:[36.92,36.92,36.79,36.79]},{ x:'02/17/2023',y:[36.86,36.86,36.83,36.83]},{ x:'02/20/2023',y:[37.00,37.00,36.85,36.85]},{ x:'02/21/2023',y:[36.88,36.93,36.88,36.93]},{ x:'02/22/2023',y:[36.87,37.06,36.87,37.06]},{ x:'02/23/2023',y:[37.05,37.05,36.90,36.90]},{ x:'02/24/2023',y:[37.00,37.00,37.00,37.00]},{ x:'03/01/2023',y:[37.00,37.17,37.00,37.14]},{ x:'03/02/2023',y:[37.03,37.07,37.03,37.07]},{ x:'03/03/2023',y:[37.03,37.11,37.03,37.11]},{ x:'03/06/2023',y:[37.04,37.09,37.04,37.06]},{ x:'03/07/2023',y:[37.08,37.08,37.08,37.08]},{ x:'03/08/2023',y:[37.20,37.21,37.18,37.21]},{ x:'03/09/2023',y:[37.24,37.24,37.24,37.24]},{ x:'03/10/2023',y:[37.46,37.48,37.46,37.48]},{ x:'03/13/2023',y:[37.55,37.55,37.44,37.45]},{ x:'03/14/2023',y:[37.56,37.58,37.56,37.57]},{ x:'03/15/2023',y:[37.42,37.42,37.41,37.41]},{ x:'03/16/2023',y:[37.34,37.34,37.34,37.34]},{ x:'03/17/2023',y:[37.09,37.09,37.09,37.09]},{ x:'03/20/2023',y:[37.10,37.28,37.10,37.28]},{ x:'03/21/2023',y:[37.24,37.28,37.19,37.26]},{ x:'03/22/2023',y:[37.09,37.09,37.08,37.09]},{ x:'03/23/2023',y:[37.07,37.09,36.98,37.09]},{ x:'03/24/2023',y:[37.09,37.13,37.09,37.13]},{ x:'03/27/2023',y:[37.17,37.17,37.11,37.11]},{ x:'03/28/2023',y:[37.01,37.01,36.92,37.00]},{ x:'03/29/2023',y:[36.94,36.99,36.94,36.99]},{ x:'03/30/2023',y:[37.06,37.06,37.05,37.05]},{ x:'03/31/2023',y:[36.99,37.00,36.97,37.00]},{ x:'04/06/2023',y:[37.27,37.33,37.27,37.31]},{ x:'04/07/2023',y:[37.24,37.24,37.24,37.24]},{ x:'04/10/2023',y:[37.16,37.16,37.14,37.15]},{ x:'04/11/2023',y:[37.16,37.17,37.16,37.17]},{ x:'04/12/2023',y:[37.18,37.18,37.18,37.18]},{ x:'04/13/2023',y:[37.25,37.25,37.21,37.22]},{ x:'04/14/2023',y:[37.18,37.18,37.13,37.13]},{ x:'04/17/2023',y:[37.13,37.19,37.13,37.14]},{ x:'04/18/2023',y:[37.16,37.16,37.12,37.12]},{ x:'04/19/2023',y:[37.11,37.13,37.11,37.13]},{ x:'04/20/2023',y:[37.15,37.25,37.15,37.25]},{ x:'04/21/2023',y:[37.29,37.31,37.29,37.31]},{ x:'04/24/2023',y:[37.30,37.30,37.28,37.28]},{ x:'04/25/2023',y:[37.36,37.36,37.36,37.36]},{ x:'04/26/2023',y:[37.44,37.54,37.44,37.54]},{ x:'04/27/2023',y:[37.54,37.54,37.50,37.50]},{ x:'04/28/2023',y:[37.45,37.46,37.42,37.46]},{ x:'05/02/2023',y:[37.47,37.52,37.47,37.52]},{ x:'05/03/2023',y:[37.61,37.61,37.56,37.57]},{ x:'05/04/2023',y:[37.67,37.68,37.65,37.68]},{ x:'05/05/2023',y:[37.61,37.61,37.55,37.57]},{ x:'05/08/2023',y:[37.54,37.54,37.51,37.51]},{ x:'05/09/2023',y:[37.48,37.48,37.45,37.48]},{ x:'05/10/2023',y:[37.54,37.54,37.54,37.54]},{ x:'05/11/2023',y:[37.60,37.61,37.60,37.61]},{ x:'05/12/2023',y:[37.69,37.70,37.68,37.68]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00856b 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());