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:'09/05/2023',y:[35.70,39.25,35.70,39.25]},{ x:'09/06/2023',y:[43.00,43.00,41.00,42.30]},{ x:'09/07/2023',y:[41.80,41.80,39.00,40.40]},{ x:'09/08/2023',y:[39.55,40.05,38.70,38.70]},{ x:'09/11/2023',y:[38.50,38.50,37.40,37.70]},{ x:'09/12/2023',y:[41.45,41.45,41.45,41.45]},{ x:'09/13/2023',y:[45.55,45.55,43.75,44.50]},{ x:'09/14/2023',y:[44.20,44.55,42.20,43.00]},{ x:'09/15/2023',y:[43.05,45.55,43.05,44.85]},{ x:'09/18/2023',y:[45.80,45.80,43.85,44.75]},{ x:'09/19/2023',y:[44.60,44.95,43.95,44.70]},{ x:'09/20/2023',y:[44.70,44.90,43.70,44.90]},{ x:'09/21/2023',y:[45.20,45.20,44.05,44.85]},{ x:'09/22/2023',y:[45.30,45.30,44.50,44.50]},{ x:'09/25/2023',y:[42.65,45.05,42.65,44.90]},{ x:'09/26/2023',y:[44.90,45.20,44.85,45.05]},{ x:'09/27/2023',y:[44.55,45.20,44.50,45.00]},{ x:'09/28/2023',y:[44.75,44.75,44.10,44.55]},{ x:'10/02/2023',y:[44.55,45.00,43.90,43.90]},{ x:'10/03/2023',y:[43.90,43.90,43.00,43.35]},{ x:'10/04/2023',y:[41.75,43.00,41.75,42.45]},{ x:'10/05/2023',y:[41.50,42.40,41.45,42.25]},{ x:'10/06/2023',y:[41.70,41.85,40.50,40.90]},{ x:'10/11/2023',y:[40.90,42.55,40.90,42.55]},{ x:'10/12/2023',y:[46.80,46.80,46.80,46.80]},{ x:'10/13/2023',y:[51.40,51.40,51.40,51.40]},{ x:'10/18/2023',y:[58.20,62.10,55.70,61.60]},{ x:'10/19/2023',y:[61.60,62.00,57.10,58.50]},{ x:'10/20/2023',y:[63.70,64.00,59.60,61.00]},{ x:'10/23/2023',y:[59.40,60.10,56.50,58.10]},{ x:'10/24/2023',y:[58.90,63.60,57.00,63.60]},{ x:'10/25/2023',y:[63.10,67.00,61.50,66.30]},{ x:'10/26/2023',y:[65.00,67.50,64.40,66.70]},{ x:'10/27/2023',y:[68.00,68.00,61.80,64.90]},{ x:'10/31/2023',y:[63.10,67.30,63.10,66.60]},{ x:'11/01/2023',y:[66.60,66.70,65.10,66.60]},{ x:'11/02/2023',y:[65.80,71.50,65.80,69.70]},{ x:'11/03/2023',y:[69.30,70.00,67.30,69.30]},{ x:'11/06/2023',y:[69.20,69.50,68.20,68.40]},{ x:'11/07/2023',y:[68.40,68.40,67.30,68.30]},{ x:'11/08/2023',y:[67.90,68.00,62.50,63.90]},{ x:'11/09/2023',y:[64.00,64.00,57.60,60.50]},{ x:'11/10/2023',y:[59.50,59.50,56.50,56.90]},{ x:'11/13/2023',y:[55.60,62.50,55.60,62.50]},{ x:'11/14/2023',y:[59.00,59.00,56.30,56.30]},{ x:'11/15/2023',y:[55.50,55.50,50.70,51.30]},{ x:'11/16/2023',y:[50.90,51.80,49.85,51.40]},{ x:'11/17/2023',y:[51.70,52.00,50.50,50.60]},{ x:'11/20/2023',y:[50.80,51.20,50.20,50.50]},{ x:'11/21/2023',y:[50.50,50.90,50.00,50.00]},{ x:'11/22/2023',y:[50.10,50.50,49.40,49.95]},{ x:'11/23/2023',y:[50.10,50.30,47.10,47.35]},{ x:'11/24/2023',y:[48.00,48.10,47.40,47.65]},{ x:'11/27/2023',y:[48.75,48.75,47.50,47.70]},{ x:'11/28/2023',y:[47.85,48.50,47.70,48.35]},{ x:'11/29/2023',y:[48.70,53.10,48.70,53.10]},{ x:'11/30/2023',y:[53.20,53.20,50.80,52.10]},{ x:'12/01/2023',y:[52.30,52.30,50.50,51.70]},{ x:'12/04/2023',y:[51.50,52.10,50.30,50.70]},{ x:'12/05/2023',y:[50.00,51.30,49.50,49.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6419 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());