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/15/2023',y:[266.00,283.50,263.50,275.50]},{ x:'11/16/2023',y:[279.00,283.00,268.00,280.00]},{ x:'11/17/2023',y:[280.00,286.00,272.50,273.00]},{ x:'11/20/2023',y:[275.50,277.50,262.50,263.50]},{ x:'11/21/2023',y:[265.00,268.50,260.50,262.00]},{ x:'11/22/2023',y:[262.00,264.00,255.00,256.00]},{ x:'11/23/2023',y:[258.50,260.50,250.00,252.50]},{ x:'11/24/2023',y:[258.50,277.50,253.50,275.00]},{ x:'11/27/2023',y:[276.00,283.00,263.50,266.50]},{ x:'11/28/2023',y:[266.00,275.50,264.00,275.50]},{ x:'11/29/2023',y:[275.50,277.00,269.50,274.50]},{ x:'11/30/2023',y:[277.50,283.00,273.00,280.00]},{ x:'12/01/2023',y:[282.50,300.00,281.00,285.00]},{ x:'12/04/2023',y:[285.50,313.00,283.00,309.50]},{ x:'12/05/2023',y:[308.00,340.00,307.00,340.00]},{ x:'12/06/2023',y:[344.00,351.00,332.00,345.00]},{ x:'12/07/2023',y:[341.50,376.00,341.50,360.50]},{ x:'12/08/2023',y:[363.00,372.50,355.50,367.00]},{ x:'12/11/2023',y:[365.00,371.50,330.50,339.00]},{ x:'12/12/2023',y:[341.00,357.00,340.50,356.00]},{ x:'12/18/2023',y:[346.00,355.00,337.50,340.00]},{ x:'12/19/2023',y:[343.00,346.00,325.00,332.50]},{ x:'01/10/2024',y:[358.50,369.00,351.00,367.00]},{ x:'01/11/2024',y:[368.50,373.00,348.50,352.50]},{ x:'01/12/2024',y:[351.50,372.50,351.50,370.00]},{ x:'01/15/2024',y:[381.00,397.50,372.00,376.50]},{ x:'01/16/2024',y:[374.00,379.00,364.00,371.00]},{ x:'01/17/2024',y:[373.00,377.50,363.50,367.00]},{ x:'01/18/2024',y:[371.00,376.00,360.00,360.00]},{ x:'01/19/2024',y:[364.50,367.00,352.00,354.50]},{ x:'01/22/2024',y:[357.00,371.50,352.50,371.00]},{ x:'01/23/2024',y:[372.00,393.00,372.00,385.00]},{ x:'01/24/2024',y:[389.00,396.50,383.00,392.00]},{ x:'01/25/2024',y:[392.00,393.00,380.00,380.50]},{ x:'01/26/2024',y:[382.00,385.50,373.00,380.50]},{ x:'01/29/2024',y:[381.00,396.00,380.00,395.50]},{ x:'01/30/2024',y:[396.00,420.00,391.50,420.00]},{ x:'01/31/2024',y:[421.00,459.00,417.00,444.00]},{ x:'02/01/2024',y:[445.00,488.00,441.50,488.00]},{ x:'02/02/2024',y:[520.00,520.00,484.00,488.50]},{ x:'02/05/2024',y:[493.50,507.00,487.00,492.00]},{ x:'02/15/2024',y:[498.00,519.00,496.00,496.00]},{ x:'02/16/2024',y:[503.00,517.00,484.00,503.00]},{ x:'02/19/2024',y:[508.00,530.00,500.00,502.00]},{ x:'02/20/2024',y:[507.00,513.00,487.00,502.00]},{ x:'02/21/2024',y:[508.00,525.00,506.00,507.00]},{ x:'02/22/2024',y:[515.00,526.00,505.00,517.00]},{ x:'02/23/2024',y:[528.00,568.00,515.00,560.00]},{ x:'02/26/2024',y:[562.00,562.00,528.00,538.00]},{ x:'02/27/2024',y:[538.00,545.00,525.00,528.00]},{ x:'02/29/2024',y:[525.00,545.00,520.00,538.00]},{ x:'03/01/2024',y:[539.00,539.00,526.00,538.00]},{ x:'03/04/2024',y:[535.00,538.00,526.00,528.00]},{ x:'03/05/2024',y:[528.00,549.00,527.00,549.00]},{ x:'03/06/2024',y:[536.00,563.00,536.00,555.00]},{ x:'03/07/2024',y:[562.00,562.00,526.00,541.00]},{ x:'03/08/2024',y:[541.00,541.00,490.00,502.00]},{ x:'03/11/2024',y:[504.00,514.00,502.00,514.00]},{ x:'03/12/2024',y:[530.00,548.00,495.50,525.00]},{ x:'03/13/2024',y:[548.00,577.00,539.00,577.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1519 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());