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:'04/09/2024',y:[39.00,39.05,38.95,39.05]},{ x:'04/10/2024',y:[42.95,42.95,40.00,42.50]},{ x:'04/11/2024',y:[41.00,42.00,38.25,41.70]},{ x:'04/12/2024',y:[40.00,40.90,38.15,38.30]},{ x:'04/15/2024',y:[37.10,38.35,36.20,38.35]},{ x:'04/16/2024',y:[37.80,41.70,37.80,39.30]},{ x:'04/17/2024',y:[39.25,39.90,38.40,39.00]},{ x:'04/18/2024',y:[39.70,40.20,38.10,39.20]},{ x:'04/19/2024',y:[38.10,38.65,36.20,37.50]},{ x:'04/22/2024',y:[37.50,37.50,36.50,36.50]},{ x:'04/23/2024',y:[36.50,36.95,36.20,36.95]},{ x:'04/24/2024',y:[37.10,38.35,36.10,36.50]},{ x:'04/25/2024',y:[36.50,37.30,36.50,37.30]},{ x:'04/26/2024',y:[38.00,38.00,36.70,37.15]},{ x:'04/29/2024',y:[37.20,40.85,37.20,39.85]},{ x:'04/30/2024',y:[39.00,43.80,39.00,43.80]},{ x:'05/02/2024',y:[48.15,48.15,48.15,48.15]},{ x:'05/03/2024',y:[48.40,48.40,43.45,43.45]},{ x:'05/06/2024',y:[43.40,43.40,39.15,39.15]},{ x:'05/07/2024',y:[35.50,39.15,35.45,37.25]},{ x:'05/08/2024',y:[36.50,39.10,36.45,38.80]},{ x:'05/09/2024',y:[39.80,41.00,38.00,38.50]},{ x:'05/10/2024',y:[39.00,39.75,37.50,38.65]},{ x:'05/13/2024',y:[37.00,37.85,34.85,35.10]},{ x:'05/14/2024',y:[34.50,36.45,34.30,35.25]},{ x:'05/15/2024',y:[34.80,36.45,34.80,35.75]},{ x:'05/16/2024',y:[35.00,35.00,33.65,33.90]},{ x:'05/17/2024',y:[33.95,34.90,33.15,34.25]},{ x:'05/20/2024',y:[34.25,35.40,33.65,33.70]},{ x:'05/21/2024',y:[33.45,34.15,33.35,34.00]},{ x:'05/22/2024',y:[33.40,34.30,33.25,34.15]},{ x:'05/23/2024',y:[33.80,34.35,33.50,33.85]},{ x:'05/24/2024',y:[34.00,34.95,33.40,34.65]},{ x:'06/11/2024',y:[39.70,39.70,39.50,39.70]},{ x:'06/12/2024',y:[43.65,43.65,43.65,43.65]},{ x:'06/13/2024',y:[48.00,48.00,46.90,48.00]},{ x:'06/14/2024',y:[47.00,48.25,43.30,43.30]},{ x:'06/17/2024',y:[42.30,43.25,40.20,41.50]},{ x:'06/18/2024',y:[42.35,45.65,41.10,45.65]},{ x:'06/19/2024',y:[50.20,50.20,44.10,46.70]},{ x:'06/20/2024',y:[44.75,46.30,43.35,44.70]},{ x:'06/21/2024',y:[44.35,44.70,43.30,44.05]},{ x:'06/24/2024',y:[44.10,45.30,43.15,44.40]},{ x:'06/25/2024',y:[43.90,44.30,43.30,43.35]},{ x:'06/26/2024',y:[44.85,45.10,43.10,44.50]},{ x:'06/27/2024',y:[44.50,48.80,44.00,46.15]},{ x:'06/28/2024',y:[46.20,47.75,45.05,45.05]},{ x:'07/01/2024',y:[46.60,46.60,43.60,45.50]},{ x:'07/02/2024',y:[45.50,45.95,44.30,45.60]},{ x:'07/03/2024',y:[45.75,45.90,44.40,44.40]},{ x:'07/04/2024',y:[44.50,48.80,43.90,47.55]},{ x:'07/05/2024',y:[46.00,52.30,46.00,52.30]},{ x:'07/12/2024',y:[55.00,62.20,54.30,62.20]},{ x:'07/15/2024',y:[63.00,68.40,63.00,68.40]},{ x:'07/16/2024',y:[68.40,72.50,64.00,69.00]},{ x:'07/17/2024',y:[67.80,67.80,65.00,65.70]},{ x:'07/18/2024',y:[65.70,72.00,65.00,70.00]},{ x:'07/19/2024',y:[70.70,74.10,67.20,69.10]},{ x:'07/22/2024',y:[69.30,71.40,62.30,70.40]},{ x:'07/23/2024',y:[70.60,77.40,69.50,77.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3095 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());