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/10/2024',y:[455.00,464.00,451.50,461.00]},{ x:'01/11/2024',y:[462.00,463.00,455.00,461.00]},{ x:'01/12/2024',y:[459.00,459.00,445.00,448.50]},{ x:'01/15/2024',y:[452.00,455.00,446.00,447.00]},{ x:'01/16/2024',y:[445.50,445.50,439.00,440.50]},{ x:'01/17/2024',y:[441.00,444.50,436.50,439.00]},{ x:'01/18/2024',y:[439.00,452.50,439.00,445.00]},{ x:'01/19/2024',y:[448.00,455.00,445.50,455.00]},{ x:'01/22/2024',y:[456.00,465.00,455.00,459.50]},{ x:'01/23/2024',y:[460.00,462.50,454.50,456.50]},{ x:'01/24/2024',y:[457.00,461.50,454.00,455.00]},{ x:'01/25/2024',y:[457.00,460.50,454.50,458.00]},{ x:'01/26/2024',y:[453.00,453.50,436.50,439.00]},{ x:'01/29/2024',y:[436.00,445.00,436.00,444.00]},{ x:'01/30/2024',y:[443.50,451.00,439.50,447.50]},{ x:'01/31/2024',y:[446.00,453.00,441.00,445.50]},{ x:'02/01/2024',y:[447.00,448.00,442.00,447.00]},{ x:'02/02/2024',y:[451.00,458.00,450.00,455.00]},{ x:'02/05/2024',y:[450.50,455.00,448.50,452.00]},{ x:'02/15/2024',y:[464.00,467.00,457.00,464.00]},{ x:'02/16/2024',y:[462.50,488.00,462.00,479.50]},{ x:'02/19/2024',y:[482.50,482.50,467.50,477.50]},{ x:'02/20/2024',y:[475.50,479.00,470.00,473.00]},{ x:'02/21/2024',y:[476.00,487.00,466.00,469.00]},{ x:'02/22/2024',y:[473.00,477.00,462.50,469.00]},{ x:'02/23/2024',y:[473.00,482.50,473.00,474.00]},{ x:'02/26/2024',y:[472.00,473.50,464.50,470.50]},{ x:'02/27/2024',y:[461.50,462.00,452.00,454.50]},{ x:'02/29/2024',y:[450.00,462.50,448.00,455.00]},{ x:'03/01/2024',y:[457.00,466.00,456.00,457.00]},{ x:'03/04/2024',y:[460.50,467.00,457.00,457.00]},{ x:'03/05/2024',y:[458.00,470.00,458.00,466.00]},{ x:'03/06/2024',y:[465.00,471.50,462.50,471.00]},{ x:'03/07/2024',y:[470.00,471.00,461.00,462.00]},{ x:'03/08/2024',y:[461.50,461.50,451.00,452.50]},{ x:'03/11/2024',y:[453.00,457.00,439.50,444.00]},{ x:'03/12/2024',y:[442.50,446.00,437.00,441.00]},{ x:'03/13/2024',y:[441.00,444.50,436.00,436.00]},{ x:'03/14/2024',y:[435.00,436.50,428.00,433.50]},{ x:'03/15/2024',y:[428.00,434.50,428.00,429.00]},{ x:'03/18/2024',y:[429.00,433.50,401.00,408.50]},{ x:'03/19/2024',y:[406.50,415.00,405.00,407.50]},{ x:'03/20/2024',y:[409.00,419.50,409.00,414.00]},{ x:'03/21/2024',y:[414.50,422.00,411.50,420.00]},{ x:'03/22/2024',y:[424.00,436.50,420.50,421.50]},{ x:'03/25/2024',y:[421.50,426.50,419.50,423.50]},{ x:'03/26/2024',y:[421.00,426.00,416.50,417.00]},{ x:'03/27/2024',y:[418.00,427.50,416.50,424.50]},{ x:'03/28/2024',y:[423.00,430.00,418.50,423.50]},{ x:'03/29/2024',y:[423.50,429.50,423.00,429.50]},{ x:'04/01/2024',y:[431.50,432.00,423.00,423.00]},{ x:'04/02/2024',y:[423.50,427.00,421.50,423.00]},{ x:'04/03/2024',y:[420.50,425.50,419.50,422.50]},{ x:'04/08/2024',y:[420.50,427.00,420.00,426.00]},{ x:'04/09/2024',y:[423.50,426.50,422.50,425.00]},{ x:'04/10/2024',y:[433.00,446.50,433.00,435.00]},{ x:'04/11/2024',y:[438.00,455.00,429.50,453.50]},{ x:'04/12/2024',y:[448.00,448.50,442.50,443.50]},{ x:'04/15/2024',y:[440.00,446.00,438.50,440.50]},{ x:'04/16/2024',y:[436.00,437.00,425.00,425.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());