ightweightCharts.CandlestickSeries);
      // Set the data for the Main Series
      mainSeries.setData(candleStickData);

      // Changing the Candlestick colors
      mainSeries.applyOptions({
        wickUpColor: "rgb(54, 116, 217)",
        upColor: "rgb(54, 116, 217)",
        wickDownColor: "rgb(225, 50, 85)",
        downColor: "rgb(225, 50, 85)",
        borderVisible: false,
      });

      // Adjust the options for the priceScale of the mainSeries
      mainSeries.priceScale().applyOptions({
   