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:'04/25/2024',y:[23.40,23.50,23.00,23.20]},{ x:'04/26/2024',y:[23.20,23.40,22.80,22.80]},{ x:'04/29/2024',y:[22.95,23.20,22.55,22.70]},{ x:'04/30/2024',y:[22.80,23.50,22.60,23.10]},{ x:'05/02/2024',y:[23.20,23.35,22.75,22.95]},{ x:'05/03/2024',y:[23.30,23.30,22.30,22.30]},{ x:'05/06/2024',y:[22.40,23.80,22.40,23.05]},{ x:'05/07/2024',y:[23.50,24.65,23.30,23.65]},{ x:'05/08/2024',y:[23.70,24.25,23.40,24.25]},{ x:'05/09/2024',y:[24.25,24.50,23.90,24.30]},{ x:'05/10/2024',y:[24.30,24.30,23.60,24.10]},{ x:'05/13/2024',y:[24.35,24.50,23.65,23.95]},{ x:'05/14/2024',y:[23.95,24.10,23.70,23.90]},{ x:'05/15/2024',y:[24.15,26.25,23.95,25.55]},{ x:'05/16/2024',y:[25.65,27.25,25.40,25.60]},{ x:'05/17/2024',y:[25.60,25.80,24.25,25.40]},{ x:'05/20/2024',y:[26.15,27.90,25.85,26.95]},{ x:'05/21/2024',y:[26.75,27.50,26.20,26.70]},{ x:'05/22/2024',y:[26.75,29.20,26.40,28.50]},{ x:'05/23/2024',y:[28.85,29.75,28.25,28.65]},{ x:'05/24/2024',y:[28.60,30.45,27.60,29.35]},{ x:'06/11/2024',y:[32.00,32.00,30.15,30.15]},{ x:'06/12/2024',y:[30.00,31.00,29.45,30.45]},{ x:'06/13/2024',y:[30.85,33.00,30.20,32.05]},{ x:'06/14/2024',y:[31.80,32.00,31.00,31.45]},{ x:'06/17/2024',y:[31.55,33.65,31.35,33.00]},{ x:'06/18/2024',y:[33.20,36.30,33.20,34.50]},{ x:'06/19/2024',y:[34.50,34.90,33.30,33.90]},{ x:'06/20/2024',y:[33.90,37.20,33.50,36.55]},{ x:'06/21/2024',y:[36.55,40.20,36.30,40.20]},{ x:'06/24/2024',y:[43.50,44.20,42.20,44.20]},{ x:'06/25/2024',y:[44.15,44.15,40.20,41.65]},{ x:'06/26/2024',y:[43.95,44.40,39.80,39.90]},{ x:'06/27/2024',y:[39.55,41.40,39.30,39.75]},{ x:'06/28/2024',y:[39.75,43.70,39.70,43.70]},{ x:'07/01/2024',y:[47.50,48.05,44.25,48.05]},{ x:'07/02/2024',y:[49.60,52.80,47.05,50.00]},{ x:'07/03/2024',y:[49.00,50.50,48.30,49.10]},{ x:'07/04/2024',y:[49.30,54.00,49.25,54.00]},{ x:'07/05/2024',y:[58.00,59.40,56.70,59.40]},{ x:'07/12/2024',y:[68.60,75.30,65.30,75.30]},{ x:'07/15/2024',y:[78.50,82.70,75.40,75.70]},{ x:'07/16/2024',y:[74.90,79.80,72.00,78.10]},{ x:'07/17/2024',y:[78.10,81.00,76.70,78.80]},{ x:'07/18/2024',y:[71.00,74.20,71.00,72.00]},{ x:'07/19/2024',y:[71.00,72.00,68.00,68.50]},{ x:'07/22/2024',y:[69.50,69.50,65.20,66.60]},{ x:'07/23/2024',y:[67.70,69.30,67.70,68.10]},{ x:'07/26/2024',y:[65.00,71.50,65.00,71.40]},{ x:'07/29/2024',y:[72.50,74.50,69.40,70.30]},{ x:'07/30/2024',y:[69.80,74.40,68.30,74.30]},{ x:'07/31/2024',y:[73.20,81.40,73.20,81.40]},{ x:'08/01/2024',y:[83.70,87.00,76.60,79.50]},{ x:'08/02/2024',y:[74.50,78.50,72.50,72.60]},{ x:'08/05/2024',y:[67.70,70.00,65.40,65.40]},{ x:'08/06/2024',y:[66.20,68.80,58.90,61.00]},{ x:'08/07/2024',y:[60.60,67.10,60.60,67.10]},{ x:'08/08/2024',y:[68.30,71.40,65.00,68.80]},{ x:'08/09/2024',y:[72.00,75.60,72.00,75.60]},{ x:'08/12/2024',y:[68.40,71.40,68.10,68.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3535 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());