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:[33.70,35.30,33.35,35.00]},{ x:'07/15/2024',y:[35.35,38.00,35.35,37.35]},{ x:'07/16/2024',y:[38.10,38.45,36.80,37.25]},{ x:'07/17/2024',y:[38.20,38.20,35.00,36.30]},{ x:'07/18/2024',y:[37.00,37.00,35.50,36.10]},{ x:'07/19/2024',y:[36.00,36.00,34.60,34.85]},{ x:'07/22/2024',y:[34.95,35.95,33.05,35.60]},{ x:'07/23/2024',y:[33.85,36.70,33.85,36.60]},{ x:'07/26/2024',y:[35.70,40.15,35.70,39.80]},{ x:'07/29/2024',y:[41.20,42.80,39.15,40.80]},{ x:'07/30/2024',y:[39.60,41.85,37.00,40.00]},{ x:'07/31/2024',y:[39.85,41.65,39.15,40.05]},{ x:'08/01/2024',y:[39.10,40.85,39.10,39.65]},{ x:'08/02/2024',y:[38.55,40.95,38.20,39.10]},{ x:'08/05/2024',y:[36.50,37.10,35.20,35.20]},{ x:'08/06/2024',y:[33.75,36.00,31.70,33.05]},{ x:'08/07/2024',y:[33.45,36.35,33.45,36.35]},{ x:'08/08/2024',y:[34.90,37.15,34.90,36.00]},{ x:'08/09/2024',y:[37.85,39.60,37.20,39.60]},{ x:'08/12/2024',y:[42.80,43.55,42.00,43.55]},{ x:'08/13/2024',y:[43.80,45.60,41.20,45.50]},{ x:'08/14/2024',y:[46.40,47.50,44.90,46.00]},{ x:'08/15/2024',y:[46.50,46.90,44.90,46.90]},{ x:'08/16/2024',y:[47.20,48.30,45.50,47.00]},{ x:'08/19/2024',y:[47.00,47.50,45.55,47.50]},{ x:'08/20/2024',y:[48.45,50.50,46.10,50.00]},{ x:'08/21/2024',y:[50.00,55.00,48.80,55.00]},{ x:'08/22/2024',y:[57.30,57.30,54.00,55.20]},{ x:'08/23/2024',y:[55.00,59.50,50.70,51.60]},{ x:'08/26/2024',y:[52.10,56.70,51.60,56.70]},{ x:'08/27/2024',y:[56.70,59.50,56.00,59.00]},{ x:'08/28/2024',y:[59.00,64.20,57.80,62.00]},{ x:'08/29/2024',y:[63.00,68.00,60.50,65.80]},{ x:'08/30/2024',y:[66.20,68.80,64.40,65.60]},{ x:'09/02/2024',y:[66.50,68.50,64.80,67.30]},{ x:'09/03/2024',y:[67.90,68.30,66.00,66.40]},{ x:'09/04/2024',y:[62.50,66.40,60.40,65.70]},{ x:'09/05/2024',y:[67.70,68.30,60.60,62.40]},{ x:'09/06/2024',y:[62.40,63.10,56.60,57.20]},{ x:'09/09/2024',y:[57.00,58.60,55.10,56.60]},{ x:'09/10/2024',y:[55.50,56.80,53.20,54.20]},{ x:'09/11/2024',y:[53.90,54.50,51.90,53.60]},{ x:'09/12/2024',y:[54.40,54.80,52.50,52.50]},{ x:'09/13/2024',y:[52.50,56.10,52.50,53.60]},{ x:'09/16/2024',y:[54.70,58.90,54.10,58.90]},{ x:'09/18/2024',y:[61.20,64.00,59.40,61.00]},{ x:'09/19/2024',y:[62.20,62.90,60.40,61.40]},{ x:'09/20/2024',y:[61.40,62.00,59.70,60.20]},{ x:'09/23/2024',y:[60.20,64.40,59.00,63.50]},{ x:'09/24/2024',y:[63.80,69.80,63.60,69.80]},{ x:'09/25/2024',y:[73.60,74.70,67.10,69.90]},{ x:'09/26/2024',y:[70.30,73.40,69.40,72.90]},{ x:'09/27/2024',y:[75.10,75.20,70.40,71.20]},{ x:'09/30/2024',y:[71.00,75.00,70.50,70.90]},{ x:'10/01/2024',y:[71.50,71.80,68.50,69.20]},{ x:'10/04/2024',y:[69.50,69.80,65.10,67.30]},{ x:'10/07/2024',y:[69.60,74.00,69.50,74.00]},{ x:'10/08/2024',y:[74.50,81.40,71.70,80.70]},{ x:'10/09/2024',y:[83.00,83.50,77.70,81.00]},{ x:'10/11/2024',y:[80.80,85.40,80.40,81.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8937 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());