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/25/2022',y:[452.00,454.50,443.00,445.00]},{ x:'11/28/2022',y:[440.00,443.50,435.00,437.50]},{ x:'11/29/2022',y:[436.50,442.50,435.00,438.00]},{ x:'11/30/2022',y:[439.50,463.00,437.50,463.00]},{ x:'12/01/2022',y:[469.00,482.00,465.50,473.00]},{ x:'12/02/2022',y:[472.50,493.50,472.50,489.50]},{ x:'12/05/2022',y:[492.00,509.00,492.00,502.00]},{ x:'12/06/2022',y:[498.50,505.00,488.00,491.00]},{ x:'12/07/2022',y:[491.00,492.50,477.00,484.50]},{ x:'12/08/2022',y:[480.50,486.00,473.00,478.50]},{ x:'12/09/2022',y:[489.00,493.50,478.00,479.00]},{ x:'12/12/2022',y:[477.00,485.50,472.00,485.50]},{ x:'12/13/2022',y:[487.00,488.00,472.00,474.00]},{ x:'12/14/2022',y:[478.50,486.00,474.50,486.00]},{ x:'12/15/2022',y:[486.00,498.00,484.00,495.00]},{ x:'12/16/2022',y:[488.00,490.00,480.50,480.50]},{ x:'12/19/2022',y:[479.00,484.50,472.00,472.00]},{ x:'12/20/2022',y:[473.00,481.50,455.50,455.50]},{ x:'12/21/2022',y:[460.50,464.00,452.00,454.50]},{ x:'12/22/2022',y:[464.00,468.50,460.00,466.50]},{ x:'12/23/2022',y:[457.50,462.00,454.50,460.00]},{ x:'12/26/2022',y:[463.00,466.50,460.50,462.50]},{ x:'12/27/2022',y:[467.50,474.00,463.00,464.50]},{ x:'12/28/2022',y:[460.50,464.00,457.00,458.00]},{ x:'12/29/2022',y:[452.50,456.50,450.50,455.50]},{ x:'12/30/2022',y:[461.50,464.00,451.00,451.00]},{ x:'01/03/2023',y:[450.00,466.50,446.00,465.50]},{ x:'01/04/2023',y:[466.00,469.00,462.00,465.00]},{ x:'01/05/2023',y:[470.00,486.00,470.00,485.50]},{ x:'01/06/2023',y:[486.00,499.50,484.00,496.00]},{ x:'01/09/2023',y:[515.00,525.00,507.00,525.00]},{ x:'01/10/2023',y:[522.00,535.00,519.00,535.00]},{ x:'01/11/2023',y:[536.00,537.00,523.00,528.00]},{ x:'01/12/2023',y:[527.00,531.00,520.00,520.00]},{ x:'01/13/2023',y:[525.00,526.00,513.00,514.00]},{ x:'01/16/2023',y:[516.00,517.00,511.00,513.00]},{ x:'01/17/2023',y:[516.00,522.00,511.00,519.00]},{ x:'01/30/2023',y:[543.00,543.00,522.00,532.00]},{ x:'01/31/2023',y:[530.00,544.00,526.00,540.00]},{ x:'02/01/2023',y:[543.00,545.00,528.00,540.00]},{ x:'02/02/2023',y:[547.00,547.00,534.00,541.00]},{ x:'02/03/2023',y:[541.00,545.00,536.00,540.00]},{ x:'02/06/2023',y:[535.00,538.00,528.00,533.00]},{ x:'02/07/2023',y:[531.00,537.00,529.00,529.00]},{ x:'02/08/2023',y:[534.00,538.00,529.00,531.00]},{ x:'02/09/2023',y:[525.00,528.00,505.00,511.00]},{ x:'02/10/2023',y:[508.00,517.00,504.00,516.00]},{ x:'02/13/2023',y:[513.00,516.00,508.00,516.00]},{ x:'02/14/2023',y:[526.00,544.00,522.00,540.00]},{ x:'02/15/2023',y:[536.00,545.00,536.00,545.00]},{ x:'02/16/2023',y:[555.00,579.00,552.00,575.00]},{ x:'02/17/2023',y:[569.00,577.00,565.00,569.00]},{ x:'02/20/2023',y:[574.00,574.00,559.00,561.00]},{ x:'02/21/2023',y:[562.00,566.00,556.00,560.00]},{ x:'02/22/2023',y:[555.00,555.00,540.00,541.00]},{ x:'02/23/2023',y:[543.00,545.00,535.00,543.00]},{ x:'02/24/2023',y:[543.00,544.00,536.00,538.00]},{ x:'03/01/2023',y:[532.00,541.00,525.00,538.00]},{ x:'03/02/2023',y:[541.00,544.00,528.00,531.00]},{ x:'03/03/2023',y:[538.00,549.00,537.00,539.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2327 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());