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/14/2023',y:[65.80,67.20,65.50,66.60]},{ x:'07/17/2023',y:[67.10,71.30,66.00,69.60]},{ x:'07/18/2023',y:[69.10,70.60,66.80,66.80]},{ x:'07/19/2023',y:[67.40,68.20,63.80,64.00]},{ x:'07/20/2023',y:[64.00,64.70,62.20,62.30]},{ x:'07/21/2023',y:[61.10,62.70,60.00,62.00]},{ x:'07/24/2023',y:[62.60,62.60,59.00,59.10]},{ x:'07/25/2023',y:[59.20,60.20,58.60,59.70]},{ x:'07/26/2023',y:[60.40,60.50,58.50,59.00]},{ x:'07/27/2023',y:[59.00,60.90,58.60,60.00]},{ x:'07/28/2023',y:[60.10,60.50,59.10,60.30]},{ x:'07/31/2023',y:[60.50,61.00,59.00,59.30]},{ x:'08/01/2023',y:[59.50,59.90,58.60,58.70]},{ x:'08/02/2023',y:[58.50,58.50,54.80,56.30]},{ x:'08/04/2023',y:[56.50,57.10,54.90,55.50]},{ x:'08/07/2023',y:[55.60,57.00,55.30,57.00]},{ x:'08/08/2023',y:[57.00,57.10,55.20,55.30]},{ x:'08/09/2023',y:[55.10,55.60,54.20,54.70]},{ x:'08/10/2023',y:[49.65,52.40,49.55,49.65]},{ x:'08/11/2023',y:[50.90,53.10,50.30,50.70]},{ x:'08/14/2023',y:[50.30,50.30,48.55,49.05]},{ x:'08/15/2023',y:[50.00,50.60,49.60,50.50]},{ x:'08/16/2023',y:[49.50,51.40,48.90,51.00]},{ x:'08/17/2023',y:[50.70,52.60,49.85,52.30]},{ x:'08/18/2023',y:[52.20,52.80,50.50,50.90]},{ x:'08/21/2023',y:[51.20,51.60,50.20,50.70]},{ x:'08/22/2023',y:[51.30,51.80,50.10,50.60]},{ x:'08/23/2023',y:[50.80,51.20,50.00,50.10]},{ x:'08/24/2023',y:[51.20,51.40,50.10,50.10]},{ x:'08/25/2023',y:[49.75,50.50,49.40,49.70]},{ x:'08/28/2023',y:[50.00,50.10,48.05,48.40]},{ x:'08/29/2023',y:[48.70,49.10,48.45,48.85]},{ x:'08/30/2023',y:[49.10,49.95,49.10,49.65]},{ x:'08/31/2023',y:[49.70,49.75,49.00,49.55]},{ x:'09/01/2023',y:[49.60,49.90,48.55,48.55]},{ x:'09/04/2023',y:[48.75,49.75,48.15,49.75]},{ x:'09/05/2023',y:[49.85,52.40,49.55,52.40]},{ x:'09/06/2023',y:[52.40,54.10,51.60,53.00]},{ x:'09/07/2023',y:[51.80,52.40,50.00,50.20]},{ x:'09/08/2023',y:[50.00,50.00,46.05,46.65]},{ x:'09/11/2023',y:[46.95,47.35,46.00,46.75]},{ x:'09/12/2023',y:[47.05,47.50,46.05,46.10]},{ x:'09/13/2023',y:[46.45,47.10,45.85,46.25]},{ x:'09/14/2023',y:[46.75,47.25,46.45,47.25]},{ x:'09/15/2023',y:[47.75,48.50,47.30,48.25]},{ x:'09/18/2023',y:[48.00,48.00,47.30,47.30]},{ x:'09/19/2023',y:[47.60,47.75,46.05,46.05]},{ x:'09/20/2023',y:[46.05,46.65,45.90,46.10]},{ x:'09/21/2023',y:[46.00,46.00,44.60,44.90]},{ x:'09/22/2023',y:[43.65,45.10,43.65,44.95]},{ x:'09/25/2023',y:[45.45,45.95,45.30,45.65]},{ x:'09/26/2023',y:[44.95,45.75,44.60,44.65]},{ x:'09/27/2023',y:[44.00,44.65,43.85,43.90]},{ x:'09/28/2023',y:[44.45,45.00,44.30,44.75]},{ x:'10/02/2023',y:[45.00,45.75,45.00,45.45]},{ x:'10/03/2023',y:[45.75,45.75,44.35,44.45]},{ x:'10/04/2023',y:[44.10,44.30,43.10,44.00]},{ x:'10/05/2023',y:[44.50,45.45,44.40,44.70]},{ x:'10/06/2023',y:[45.00,45.00,44.00,44.00]},{ x:'10/11/2023',y:[44.60,44.60,42.10,42.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2482 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());