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/26/2024',y:[18.95,19.30,18.80,18.85]},{ x:'04/29/2024',y:[19.00,19.35,19.00,19.10]},{ x:'04/30/2024',y:[19.15,19.60,18.90,19.15]},{ x:'05/02/2024',y:[19.20,19.30,18.70,19.20]},{ x:'05/03/2024',y:[19.50,19.50,18.80,18.80]},{ x:'05/06/2024',y:[19.05,19.25,18.80,18.95]},{ x:'05/07/2024',y:[19.25,19.95,19.20,19.50]},{ x:'05/08/2024',y:[19.70,21.25,19.65,20.55]},{ x:'05/09/2024',y:[20.60,20.70,20.00,20.10]},{ x:'05/10/2024',y:[20.20,20.55,19.90,20.15]},{ x:'05/13/2024',y:[20.70,20.95,20.10,20.15]},{ x:'05/14/2024',y:[20.40,20.55,20.00,20.15]},{ x:'05/15/2024',y:[20.20,22.15,20.20,22.15]},{ x:'05/16/2024',y:[23.15,23.80,22.50,22.65]},{ x:'05/17/2024',y:[22.10,22.35,21.35,21.50]},{ x:'05/20/2024',y:[21.55,21.70,21.00,21.20]},{ x:'05/21/2024',y:[21.40,23.30,21.40,23.30]},{ x:'05/22/2024',y:[23.55,25.60,23.30,25.60]},{ x:'05/23/2024',y:[27.35,28.15,26.95,28.15]},{ x:'05/24/2024',y:[30.00,30.90,28.90,29.90]},{ x:'06/11/2024',y:[33.20,33.20,31.00,31.60]},{ x:'06/12/2024',y:[31.20,34.00,31.20,34.00]},{ x:'06/13/2024',y:[34.55,35.25,32.10,32.85]},{ x:'06/14/2024',y:[32.00,32.85,31.50,31.85]},{ x:'06/17/2024',y:[31.85,35.00,31.75,35.00]},{ x:'06/18/2024',y:[38.50,38.50,37.60,38.50]},{ x:'06/19/2024',y:[41.95,42.00,35.35,35.55]},{ x:'06/20/2024',y:[35.00,38.80,34.25,37.85]},{ x:'06/21/2024',y:[37.30,39.95,36.50,38.10]},{ x:'06/24/2024',y:[38.00,38.50,36.75,37.85]},{ x:'06/25/2024',y:[37.85,38.60,36.35,37.85]},{ x:'06/26/2024',y:[37.70,38.40,36.55,36.70]},{ x:'06/27/2024',y:[36.45,36.90,35.30,35.30]},{ x:'06/28/2024',y:[35.65,38.80,35.50,38.80]},{ x:'07/01/2024',y:[39.80,42.65,39.20,40.60]},{ x:'07/02/2024',y:[41.00,42.20,39.85,40.75]},{ x:'07/03/2024',y:[40.95,44.80,40.50,44.80]},{ x:'07/04/2024',y:[48.90,49.25,47.70,49.25]},{ x:'07/05/2024',y:[53.00,54.10,51.90,54.10]},{ x:'07/12/2024',y:[55.80,63.00,55.20,58.00]},{ x:'07/15/2024',y:[59.20,61.70,58.00,59.40]},{ x:'07/16/2024',y:[59.60,60.40,57.10,59.20]},{ x:'07/17/2024',y:[59.90,65.10,59.00,65.10]},{ x:'07/18/2024',y:[66.30,69.80,62.30,66.90]},{ x:'07/19/2024',y:[68.20,71.30,61.90,63.80]},{ x:'07/22/2024',y:[65.50,67.60,63.50,63.50]},{ x:'07/23/2024',y:[66.60,69.20,64.00,64.30]},{ x:'07/26/2024',y:[63.00,66.80,60.10,64.00]},{ x:'07/29/2024',y:[66.50,67.50,58.20,59.20]},{ x:'07/30/2024',y:[57.50,61.20,56.00,57.80]},{ x:'07/31/2024',y:[57.40,59.00,55.60,56.40]},{ x:'08/01/2024',y:[58.20,62.00,58.20,62.00]},{ x:'08/02/2024',y:[62.00,66.60,59.90,64.30]},{ x:'08/05/2024',y:[61.80,63.90,57.90,57.90]},{ x:'08/06/2024',y:[60.60,61.50,52.20,52.80]},{ x:'08/07/2024',y:[54.00,58.00,54.00,58.00]},{ x:'08/08/2024',y:[59.10,63.30,57.60,61.30]},{ x:'08/09/2024',y:[64.80,67.20,62.30,62.90]},{ x:'08/12/2024',y:[64.00,65.00,61.10,62.90]},{ x:'08/13/2024',y:[63.10,65.70,61.80,64.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2365 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());