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:'06/13/2023',y:[49.70,50.70,49.70,49.85]},{ x:'06/14/2023',y:[50.00,50.00,48.85,49.10]},{ x:'06/15/2023',y:[49.30,49.80,48.50,48.70]},{ x:'06/16/2023',y:[48.80,49.00,47.80,48.15]},{ x:'06/19/2023',y:[48.60,49.00,48.10,48.80]},{ x:'06/20/2023',y:[49.00,49.20,48.20,48.75]},{ x:'06/21/2023',y:[48.40,50.00,48.40,49.70]},{ x:'06/26/2023',y:[49.70,49.70,48.20,48.30]},{ x:'06/27/2023',y:[46.60,46.90,45.80,45.80]},{ x:'06/28/2023',y:[46.10,46.40,45.55,45.95]},{ x:'06/29/2023',y:[46.10,46.45,45.90,45.95]},{ x:'06/30/2023',y:[46.00,46.95,44.70,46.55]},{ x:'07/03/2023',y:[47.30,48.80,47.10,48.35]},{ x:'07/04/2023',y:[48.50,50.50,47.60,50.10]},{ x:'07/05/2023',y:[50.60,50.80,48.85,49.00]},{ x:'07/06/2023',y:[48.85,49.35,48.10,48.50]},{ x:'07/07/2023',y:[48.40,48.60,47.45,48.30]},{ x:'07/10/2023',y:[47.80,48.75,47.55,47.70]},{ x:'07/11/2023',y:[47.80,50.30,47.55,49.35]},{ x:'07/12/2023',y:[49.30,50.30,49.15,49.30]},{ x:'07/13/2023',y:[49.75,51.50,49.75,50.10]},{ x:'07/14/2023',y:[51.20,55.10,50.80,55.10]},{ x:'07/17/2023',y:[56.50,60.60,56.20,57.90]},{ x:'07/18/2023',y:[58.40,61.20,55.20,60.00]},{ x:'07/19/2023',y:[59.50,60.00,57.20,58.70]},{ x:'07/20/2023',y:[63.50,64.50,62.20,64.50]},{ x:'07/21/2023',y:[65.00,70.90,64.00,70.90]},{ x:'07/24/2023',y:[77.30,77.30,72.70,76.10]},{ x:'07/25/2023',y:[75.00,78.20,73.70,74.20]},{ x:'07/26/2023',y:[75.50,75.50,70.80,71.10]},{ x:'07/27/2023',y:[73.00,75.80,71.50,71.60]},{ x:'07/28/2023',y:[71.50,71.90,69.20,70.70]},{ x:'07/31/2023',y:[72.30,72.30,67.00,68.10]},{ x:'08/01/2023',y:[68.20,69.00,65.80,66.30]},{ x:'08/02/2023',y:[66.90,66.90,60.50,61.80]},{ x:'08/04/2023',y:[62.80,63.20,60.70,62.80]},{ x:'08/07/2023',y:[62.20,64.10,60.40,63.80]},{ x:'08/08/2023',y:[63.70,63.70,61.00,62.10]},{ x:'08/09/2023',y:[61.40,62.60,60.10,60.30]},{ x:'08/10/2023',y:[59.20,59.60,56.50,57.10]},{ x:'08/11/2023',y:[61.00,61.00,57.60,57.70]},{ x:'08/14/2023',y:[57.00,57.50,55.10,55.70]},{ x:'08/15/2023',y:[56.80,57.70,56.10,56.20]},{ x:'08/16/2023',y:[55.30,58.50,54.50,57.70]},{ x:'08/17/2023',y:[56.60,61.60,56.20,61.50]},{ x:'08/18/2023',y:[60.80,61.50,57.90,58.50]},{ x:'08/21/2023',y:[58.60,60.60,58.60,60.10]},{ x:'08/22/2023',y:[62.10,62.60,58.00,58.70]},{ x:'08/23/2023',y:[58.90,59.40,57.90,58.50]},{ x:'08/24/2023',y:[59.80,60.80,58.80,59.10]},{ x:'08/25/2023',y:[58.00,58.90,57.30,57.40]},{ x:'08/28/2023',y:[57.00,57.30,55.40,56.40]},{ x:'08/29/2023',y:[57.50,57.50,55.40,56.00]},{ x:'08/30/2023',y:[56.60,59.90,56.60,59.20]},{ x:'08/31/2023',y:[58.90,59.60,58.40,58.90]},{ x:'09/01/2023',y:[59.10,59.20,57.60,57.90]},{ x:'09/04/2023',y:[58.00,62.80,57.30,61.70]},{ x:'09/05/2023',y:[60.90,61.30,59.70,61.20]},{ x:'09/06/2023',y:[62.00,62.10,60.50,61.00]},{ x:'09/07/2023',y:[61.40,65.50,60.40,63.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3338 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());