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/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]},{ x:'03/06/2023',y:[548.00,559.00,542.00,557.00]},{ x:'03/07/2023',y:[560.00,562.00,553.00,559.00]},{ x:'03/08/2023',y:[554.00,555.00,546.00,550.00]},{ x:'03/09/2023',y:[552.00,554.00,540.00,541.00]},{ x:'03/10/2023',y:[534.00,535.00,515.00,518.00]},{ x:'03/13/2023',y:[510.00,520.00,507.00,519.00]},{ x:'03/14/2023',y:[512.00,516.00,505.00,505.00]},{ x:'03/15/2023',y:[500.00,510.00,492.00,492.00]},{ x:'03/16/2023',y:[490.00,493.50,481.00,486.50]},{ x:'03/17/2023',y:[492.00,497.50,485.00,496.00]},{ x:'03/20/2023',y:[497.50,503.00,495.00,500.00]},{ x:'03/21/2023',y:[505.00,509.00,499.00,505.00]},{ x:'03/22/2023',y:[508.00,509.00,504.00,505.00]},{ x:'03/23/2023',y:[504.00,520.00,502.00,517.00]},{ x:'03/24/2023',y:[521.00,530.00,515.00,527.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());