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:[20.00,21.00,19.25,19.60]},{ x:'04/26/2024',y:[19.60,19.85,18.90,19.35]},{ x:'04/29/2024',y:[19.35,19.35,18.45,18.45]},{ x:'04/30/2024',y:[18.50,18.65,18.30,18.45]},{ x:'05/02/2024',y:[18.55,18.90,18.15,18.50]},{ x:'05/03/2024',y:[18.55,18.80,18.00,18.00]},{ x:'05/06/2024',y:[19.80,19.80,19.80,19.80]},{ x:'05/07/2024',y:[21.75,21.75,21.75,21.75]},{ x:'05/08/2024',y:[23.90,23.90,23.90,23.90]},{ x:'05/09/2024',y:[26.25,26.25,25.45,26.25]},{ x:'05/10/2024',y:[27.80,28.85,25.35,28.85]},{ x:'05/13/2024',y:[29.65,30.50,27.50,29.45]},{ x:'05/14/2024',y:[28.60,30.00,28.25,29.00]},{ x:'05/15/2024',y:[29.25,31.90,29.25,31.05]},{ x:'05/16/2024',y:[31.90,31.90,29.70,30.00]},{ x:'05/17/2024',y:[30.75,30.75,28.50,29.05]},{ x:'05/20/2024',y:[30.00,30.35,28.85,28.85]},{ x:'05/21/2024',y:[28.90,31.70,28.90,31.70]},{ x:'05/22/2024',y:[32.00,33.00,31.00,32.20]},{ x:'05/23/2024',y:[32.60,32.60,30.00,30.00]},{ x:'05/24/2024',y:[29.00,31.80,29.00,31.75]},{ x:'06/11/2024',y:[39.00,39.00,35.30,35.30]},{ x:'06/12/2024',y:[35.00,38.80,33.85,38.80]},{ x:'06/13/2024',y:[40.10,42.65,40.10,42.65]},{ x:'06/14/2024',y:[44.20,46.90,43.20,46.90]},{ x:'06/17/2024',y:[50.40,51.50,49.00,51.50]},{ x:'06/18/2024',y:[53.20,56.60,50.00,50.00]},{ x:'06/19/2024',y:[49.55,49.55,45.25,45.45]},{ x:'06/20/2024',y:[45.30,49.95,44.20,49.95]},{ x:'06/21/2024',y:[49.90,51.10,47.70,48.10]},{ x:'06/24/2024',y:[47.40,49.00,46.55,48.70]},{ x:'06/25/2024',y:[48.25,51.60,48.00,49.50]},{ x:'06/26/2024',y:[49.20,51.30,48.40,48.50]},{ x:'06/27/2024',y:[48.30,48.45,46.00,46.00]},{ x:'06/28/2024',y:[46.10,50.60,46.10,50.60]},{ x:'07/01/2024',y:[53.10,55.60,51.60,55.60]},{ x:'07/02/2024',y:[56.00,59.40,53.20,54.90]},{ x:'07/03/2024',y:[55.70,60.30,55.30,60.30]},{ x:'07/04/2024',y:[66.30,66.30,66.30,66.30]},{ x:'07/05/2024',y:[72.30,72.90,68.30,72.90]},{ x:'07/12/2024',y:[64.50,66.70,64.10,64.80]},{ x:'07/15/2024',y:[65.00,66.40,63.00,63.50]},{ x:'07/16/2024',y:[63.50,64.20,60.60,60.60]},{ x:'07/17/2024',y:[61.90,64.80,61.00,63.40]},{ x:'07/18/2024',y:[61.20,62.50,60.20,61.60]},{ x:'07/19/2024',y:[62.10,62.40,60.70,61.90]},{ x:'07/22/2024',y:[62.60,64.50,60.50,62.90]},{ x:'07/23/2024',y:[66.00,69.10,60.20,63.00]},{ x:'07/26/2024',y:[60.30,63.40,58.50,59.60]},{ x:'07/29/2024',y:[60.00,63.00,53.70,53.70]},{ x:'07/30/2024',y:[53.50,55.60,51.20,55.00]},{ x:'07/31/2024',y:[54.80,59.60,53.10,55.00]},{ x:'08/01/2024',y:[57.00,60.50,57.00,60.50]},{ x:'08/02/2024',y:[58.90,66.50,56.90,66.50]},{ x:'08/05/2024',y:[66.60,68.40,59.90,59.90]},{ x:'08/06/2024',y:[63.50,64.80,54.00,57.30]},{ x:'08/07/2024',y:[57.90,63.00,57.90,63.00]},{ x:'08/08/2024',y:[63.70,69.30,61.90,69.30]},{ x:'08/09/2024',y:[74.70,76.20,73.80,76.20]},{ x:'08/12/2024',y:[77.20,78.90,68.80,70.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4562 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());