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:'01/12/2024',y:[2.23,2.25,2.23,2.25]},{ x:'01/15/2024',y:[2.24,2.25,2.23,2.24]},{ x:'01/16/2024',y:[2.22,2.24,2.21,2.23]},{ x:'01/17/2024',y:[2.21,2.24,2.21,2.23]},{ x:'01/18/2024',y:[2.23,2.23,2.22,2.22]},{ x:'01/19/2024',y:[2.21,2.23,2.20,2.22]},{ x:'01/22/2024',y:[2.24,2.24,2.21,2.21]},{ x:'01/23/2024',y:[2.21,2.23,2.20,2.21]},{ x:'01/24/2024',y:[2.22,2.22,2.20,2.21]},{ x:'01/25/2024',y:[2.21,2.22,2.20,2.21]},{ x:'01/26/2024',y:[2.22,2.22,2.21,2.21]},{ x:'01/29/2024',y:[2.21,2.23,2.21,2.21]},{ x:'01/30/2024',y:[2.23,2.25,2.21,2.21]},{ x:'01/31/2024',y:[2.23,2.23,2.21,2.21]},{ x:'02/01/2024',y:[2.21,2.22,2.20,2.21]},{ x:'02/02/2024',y:[2.21,2.21,2.20,2.20]},{ x:'02/05/2024',y:[2.20,2.22,2.20,2.21]},{ x:'02/15/2024',y:[2.21,2.23,2.17,2.21]},{ x:'02/16/2024',y:[2.20,2.21,2.18,2.20]},{ x:'02/19/2024',y:[2.20,2.21,2.19,2.20]},{ x:'02/20/2024',y:[2.20,2.20,2.17,2.19]},{ x:'02/21/2024',y:[2.19,2.20,2.18,2.20]},{ x:'02/22/2024',y:[2.19,2.20,2.17,2.19]},{ x:'02/23/2024',y:[2.19,2.20,2.18,2.20]},{ x:'02/26/2024',y:[2.18,2.20,2.18,2.19]},{ x:'02/27/2024',y:[2.19,2.19,2.17,2.19]},{ x:'02/29/2024',y:[2.19,2.19,2.15,2.19]},{ x:'03/01/2024',y:[2.18,2.19,2.13,2.18]},{ x:'03/04/2024',y:[2.18,2.18,2.15,2.17]},{ x:'03/05/2024',y:[2.17,2.19,2.17,2.18]},{ x:'03/06/2024',y:[2.17,2.18,2.16,2.17]},{ x:'03/07/2024',y:[2.18,2.19,2.16,2.18]},{ x:'03/08/2024',y:[2.18,2.26,2.16,2.21]},{ x:'03/11/2024',y:[2.22,2.42,2.22,2.30]},{ x:'03/12/2024',y:[2.30,2.35,2.25,2.34]},{ x:'03/13/2024',y:[2.34,2.37,2.28,2.33]},{ x:'03/14/2024',y:[2.32,2.35,2.31,2.33]},{ x:'03/15/2024',y:[2.32,2.36,2.31,2.33]},{ x:'03/18/2024',y:[2.33,2.37,2.30,2.30]},{ x:'03/19/2024',y:[2.30,2.34,2.29,2.33]},{ x:'03/20/2024',y:[2.34,2.34,2.31,2.31]},{ x:'03/21/2024',y:[2.31,2.34,2.30,2.31]},{ x:'03/22/2024',y:[2.34,2.54,2.34,2.46]},{ x:'03/25/2024',y:[2.46,2.69,2.46,2.62]},{ x:'03/26/2024',y:[2.62,2.79,2.54,2.62]},{ x:'03/27/2024',y:[2.69,2.75,2.62,2.62]},{ x:'03/28/2024',y:[2.64,2.65,2.57,2.62]},{ x:'03/29/2024',y:[2.62,2.69,2.61,2.66]},{ x:'04/11/2024',y:[3.20,3.45,3.20,3.33]},{ x:'04/12/2024',y:[3.00,3.07,2.85,2.87]},{ x:'04/15/2024',y:[2.85,2.85,2.69,2.70]},{ x:'04/16/2024',y:[2.70,2.97,2.70,2.81]},{ x:'04/17/2024',y:[2.81,2.91,2.78,2.82]},{ x:'04/18/2024',y:[2.82,2.82,2.70,2.72]},{ x:'04/19/2024',y:[2.78,2.90,2.71,2.74]},{ x:'04/22/2024',y:[2.75,2.80,2.66,2.70]},{ x:'04/23/2024',y:[2.70,2.70,2.58,2.59]},{ x:'04/24/2024',y:[2.58,2.61,2.55,2.58]},{ x:'04/25/2024',y:[2.62,2.66,2.56,2.57]},{ x:'04/26/2024',y:[2.60,2.62,2.56,2.57]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "912000 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());