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/18/2024',y:[30.00,30.65,29.70,30.65]},{ x:'04/19/2024',y:[30.30,30.40,29.60,29.95]},{ x:'04/22/2024',y:[29.85,30.50,29.85,30.40]},{ x:'04/23/2024',y:[30.40,30.95,30.40,30.80]},{ x:'04/24/2024',y:[31.00,33.85,31.00,33.50]},{ x:'04/25/2024',y:[33.50,33.80,32.20,32.55]},{ x:'04/26/2024',y:[32.55,34.45,32.20,33.65]},{ x:'04/29/2024',y:[33.90,35.50,33.90,34.00]},{ x:'04/30/2024',y:[34.00,34.25,33.30,33.45]},{ x:'05/02/2024',y:[33.45,34.25,33.45,33.80]},{ x:'05/03/2024',y:[34.00,34.50,33.35,33.60]},{ x:'05/06/2024',y:[34.15,34.70,33.90,34.70]},{ x:'05/07/2024',y:[34.90,35.65,34.80,35.15]},{ x:'05/08/2024',y:[35.20,35.65,35.10,35.50]},{ x:'05/09/2024',y:[37.80,39.05,37.75,39.05]},{ x:'05/10/2024',y:[40.00,42.95,39.30,42.95]},{ x:'05/13/2024',y:[39.50,40.85,38.70,39.30]},{ x:'05/14/2024',y:[39.00,40.30,38.05,40.25]},{ x:'05/15/2024',y:[40.55,42.00,39.45,40.10]},{ x:'05/16/2024',y:[40.55,41.00,39.50,39.95]},{ x:'05/17/2024',y:[40.00,41.00,39.90,40.30]},{ x:'05/20/2024',y:[40.30,40.95,39.75,39.75]},{ x:'05/21/2024',y:[39.80,40.80,39.60,39.80]},{ x:'05/22/2024',y:[40.00,40.70,39.00,39.30]},{ x:'05/23/2024',y:[39.20,39.55,38.75,39.25]},{ x:'05/24/2024',y:[39.25,39.40,38.35,38.45]},{ x:'06/11/2024',y:[55.00,57.00,52.80,54.20]},{ x:'06/12/2024',y:[56.00,56.50,48.80,48.80]},{ x:'06/13/2024',y:[48.30,51.70,47.65,49.75]},{ x:'06/14/2024',y:[49.90,54.70,49.90,53.10]},{ x:'06/17/2024',y:[52.00,53.00,47.80,47.80]},{ x:'06/18/2024',y:[47.20,48.65,47.00,47.30]},{ x:'06/19/2024',y:[47.50,47.90,46.15,46.15]},{ x:'06/20/2024',y:[46.35,49.20,46.25,48.80]},{ x:'06/21/2024',y:[48.80,52.10,48.20,51.20]},{ x:'06/24/2024',y:[50.60,51.00,48.65,48.85]},{ x:'06/25/2024',y:[48.90,49.85,47.85,48.65]},{ x:'06/26/2024',y:[48.90,49.75,48.55,48.70]},{ x:'06/27/2024',y:[47.80,48.45,46.65,46.65]},{ x:'06/28/2024',y:[46.65,47.00,44.60,44.90]},{ x:'07/01/2024',y:[44.55,45.15,43.85,44.05]},{ x:'07/02/2024',y:[43.95,45.65,43.75,44.05]},{ x:'07/03/2024',y:[44.35,45.15,44.00,44.60]},{ x:'07/04/2024',y:[45.00,45.00,42.80,43.40]},{ x:'07/05/2024',y:[44.00,44.10,43.05,43.20]},{ x:'07/12/2024',y:[41.15,41.75,40.35,40.50]},{ x:'07/15/2024',y:[40.85,40.85,40.30,40.70]},{ x:'07/16/2024',y:[40.80,41.05,38.00,38.85]},{ x:'07/17/2024',y:[39.30,39.50,38.70,39.10]},{ x:'07/18/2024',y:[40.00,40.00,38.95,39.25]},{ x:'07/19/2024',y:[39.35,39.45,38.95,39.15]},{ x:'07/22/2024',y:[39.25,39.25,38.20,38.75]},{ x:'07/23/2024',y:[39.25,39.30,38.55,39.05]},{ x:'07/26/2024',y:[39.10,39.10,38.05,38.40]},{ x:'07/29/2024',y:[38.50,38.65,37.30,37.40]},{ x:'07/30/2024',y:[37.45,37.65,36.40,37.65]},{ x:'07/31/2024',y:[37.70,37.90,37.25,37.70]},{ x:'08/01/2024',y:[37.90,39.20,37.70,38.70]},{ x:'08/02/2024',y:[38.55,38.55,36.05,36.70]},{ x:'08/05/2024',y:[36.05,36.20,33.05,33.05]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1473 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());