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:'05/25/2023',y:[41.50,41.50,40.80,40.90]},{ x:'05/26/2023',y:[40.85,41.00,40.25,40.40]},{ x:'05/29/2023',y:[40.45,41.50,40.40,41.25]},{ x:'05/30/2023',y:[41.55,41.95,41.15,41.30]},{ x:'05/31/2023',y:[41.30,41.95,41.30,41.80]},{ x:'06/01/2023',y:[42.10,42.75,42.10,42.65]},{ x:'06/02/2023',y:[43.00,43.10,42.10,42.40]},{ x:'06/05/2023',y:[42.60,43.90,42.55,43.70]},{ x:'06/06/2023',y:[43.55,43.65,42.90,43.20]},{ x:'06/07/2023',y:[43.45,43.50,42.95,43.15]},{ x:'06/08/2023',y:[42.75,43.15,42.10,42.20]},{ x:'06/09/2023',y:[42.85,43.60,42.50,43.10]},{ x:'06/12/2023',y:[43.15,43.45,42.35,42.65]},{ x:'06/13/2023',y:[42.40,42.70,42.40,42.60]},{ x:'06/14/2023',y:[42.75,43.95,42.65,43.50]},{ x:'06/15/2023',y:[43.65,44.85,43.65,44.20]},{ x:'06/16/2023',y:[44.25,44.50,43.45,43.45]},{ x:'06/19/2023',y:[43.45,43.60,43.10,43.20]},{ x:'06/20/2023',y:[43.35,43.40,42.90,43.10]},{ x:'06/21/2023',y:[43.35,44.05,43.20,44.05]},{ x:'06/26/2023',y:[44.00,44.00,43.45,43.70]},{ x:'06/27/2023',y:[43.70,43.70,41.95,41.95]},{ x:'06/28/2023',y:[41.95,42.55,41.90,42.35]},{ x:'06/29/2023',y:[42.40,42.90,42.35,42.45]},{ x:'06/30/2023',y:[42.45,42.80,41.90,42.75]},{ x:'07/03/2023',y:[43.00,44.45,43.00,44.00]},{ x:'07/04/2023',y:[43.80,48.10,43.70,47.00]},{ x:'07/05/2023',y:[47.90,48.40,47.30,48.40]},{ x:'07/06/2023',y:[48.55,49.85,47.75,48.20]},{ x:'07/07/2023',y:[48.50,49.85,48.35,49.45]},{ x:'07/10/2023',y:[49.60,50.40,48.70,49.40]},{ x:'07/11/2023',y:[49.30,49.80,47.90,48.50]},{ x:'07/12/2023',y:[49.00,49.40,48.45,49.10]},{ x:'07/13/2023',y:[49.70,49.80,48.80,49.00]},{ x:'07/14/2023',y:[49.50,50.10,49.45,49.85]},{ x:'07/17/2023',y:[50.80,54.80,50.60,54.80]},{ x:'07/18/2023',y:[56.00,56.00,49.35,49.35]},{ x:'07/19/2023',y:[49.50,49.65,47.90,48.20]},{ x:'07/20/2023',y:[48.70,51.30,48.65,50.10]},{ x:'07/21/2023',y:[49.90,55.00,49.75,54.60]},{ x:'07/24/2023',y:[56.10,58.80,55.10,58.00]},{ x:'07/25/2023',y:[59.00,62.60,57.50,62.00]},{ x:'07/26/2023',y:[63.40,64.80,58.60,60.10]},{ x:'07/27/2023',y:[60.60,62.60,59.80,62.60]},{ x:'07/28/2023',y:[63.70,64.60,61.40,64.00]},{ x:'07/31/2023',y:[66.20,67.80,63.50,65.60]},{ x:'08/01/2023',y:[63.60,63.90,60.20,60.30]},{ x:'08/02/2023',y:[60.00,61.30,56.10,56.80]},{ x:'08/04/2023',y:[61.80,62.40,58.80,62.40]},{ x:'08/07/2023',y:[67.50,67.50,62.10,64.60]},{ x:'08/08/2023',y:[64.60,64.80,60.20,61.40]},{ x:'08/09/2023',y:[61.30,62.90,59.80,60.00]},{ x:'08/10/2023',y:[60.50,62.70,58.70,61.00]},{ x:'08/11/2023',y:[61.40,62.30,59.70,60.60]},{ x:'08/14/2023',y:[60.40,61.60,59.40,60.40]},{ x:'08/15/2023',y:[61.00,62.70,60.70,61.90]},{ x:'08/16/2023',y:[62.60,68.00,62.20,68.00]},{ x:'08/17/2023',y:[67.00,72.30,66.20,72.20]},{ x:'08/18/2023',y:[71.00,72.50,65.00,65.00]},{ x:'08/21/2023',y:[66.40,69.40,65.30,67.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3689 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());