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:'07/12/2024',y:[40.85,41.25,40.50,41.15]},{ x:'07/15/2024',y:[41.85,42.65,41.15,41.65]},{ x:'07/16/2024',y:[42.30,44.95,41.95,44.30]},{ x:'07/17/2024',y:[45.10,48.70,45.10,47.00]},{ x:'07/18/2024',y:[46.50,49.90,45.20,48.15]},{ x:'07/19/2024',y:[48.00,48.55,46.35,47.40]},{ x:'07/22/2024',y:[47.95,47.95,44.00,46.00]},{ x:'07/23/2024',y:[46.55,49.70,46.25,47.75]},{ x:'07/26/2024',y:[47.00,48.30,46.80,47.50]},{ x:'07/29/2024',y:[48.65,51.70,48.65,50.70]},{ x:'07/30/2024',y:[50.40,52.00,47.60,52.00]},{ x:'07/31/2024',y:[52.40,54.40,50.40,51.10]},{ x:'08/01/2024',y:[50.80,51.50,49.10,50.10]},{ x:'08/02/2024',y:[50.40,50.50,46.00,46.10]},{ x:'08/05/2024',y:[42.00,44.40,41.50,41.50]},{ x:'08/06/2024',y:[41.85,42.10,37.35,39.65]},{ x:'08/07/2024',y:[39.30,42.45,38.80,40.80]},{ x:'08/08/2024',y:[40.70,41.20,39.20,40.45]},{ x:'08/09/2024',y:[41.20,42.80,41.20,41.30]},{ x:'08/12/2024',y:[41.50,43.15,41.50,42.00]},{ x:'08/13/2024',y:[44.90,44.90,41.90,42.20]},{ x:'08/14/2024',y:[42.50,44.30,42.50,43.55]},{ x:'08/15/2024',y:[43.55,44.15,43.40,43.60]},{ x:'08/16/2024',y:[44.00,44.60,43.00,43.20]},{ x:'08/19/2024',y:[43.15,44.30,42.10,44.10]},{ x:'08/20/2024',y:[44.10,44.10,41.80,41.80]},{ x:'08/21/2024',y:[41.80,41.80,40.25,40.70]},{ x:'08/22/2024',y:[40.70,40.80,39.60,40.80]},{ x:'08/23/2024',y:[40.60,40.60,39.70,40.10]},{ x:'08/26/2024',y:[40.20,41.10,39.95,40.15]},{ x:'08/27/2024',y:[40.05,40.40,39.85,39.95]},{ x:'08/28/2024',y:[39.95,40.30,39.65,40.25]},{ x:'08/29/2024',y:[40.25,40.55,39.85,40.00]},{ x:'08/30/2024',y:[40.35,41.55,40.05,40.30]},{ x:'09/02/2024',y:[40.45,40.85,39.35,39.55]},{ x:'09/03/2024',y:[39.70,39.95,39.40,39.65]},{ x:'09/04/2024',y:[38.60,39.20,37.80,38.50]},{ x:'09/05/2024',y:[38.80,39.60,38.70,39.25]},{ x:'09/06/2024',y:[39.25,39.70,38.70,38.85]},{ x:'09/09/2024',y:[38.90,39.45,38.45,39.35]},{ x:'09/10/2024',y:[39.30,39.50,37.20,37.40]},{ x:'09/11/2024',y:[37.50,38.20,37.05,37.50]},{ x:'09/12/2024',y:[37.80,38.05,37.40,37.45]},{ x:'09/13/2024',y:[37.40,38.30,37.40,38.00]},{ x:'09/16/2024',y:[38.00,38.10,37.80,37.95]},{ x:'09/18/2024',y:[37.95,38.35,37.75,37.95]},{ x:'09/19/2024',y:[38.00,38.65,37.90,38.30]},{ x:'09/20/2024',y:[37.00,37.55,35.55,37.55]},{ x:'09/23/2024',y:[36.70,36.70,34.60,34.95]},{ x:'09/24/2024',y:[35.25,36.20,34.95,35.35]},{ x:'09/25/2024',y:[35.85,35.85,35.00,35.00]},{ x:'09/26/2024',y:[35.40,35.45,34.60,34.90]},{ x:'09/27/2024',y:[35.05,35.60,34.60,35.30]},{ x:'09/30/2024',y:[35.40,35.40,34.90,35.10]},{ x:'10/01/2024',y:[35.20,35.20,33.50,33.70]},{ x:'10/04/2024',y:[33.80,33.80,32.30,32.55]},{ x:'10/07/2024',y:[33.45,34.25,33.00,33.85]},{ x:'10/08/2024',y:[34.00,34.00,32.95,33.70]},{ x:'10/09/2024',y:[33.20,33.20,32.35,32.80]},{ x:'10/11/2024',y:[32.70,33.05,32.35,32.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5213 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());