Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QCandlestickSet too thick!!

    General and Desktop
    2
    4
    701
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MiC78 last edited by MiC78

      Hi everybody,
      I am relatively new in QT... So I wondered if someone knows how to reduce the thickness of the candlesticks when they are painted in a QChart.

      If for example a want to show in a Chart one-year data the candlesticks overlap and the effect is quite annoying.

      Thank you very much in advance

      0_1517347337066_Candlesticks overlaped.png

      Actualy, I would appreciate ever more if someone knows how to select ohlc bars instead of the candlestick bars. That would be awesome!!

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @MiC78 last edited by

        @MiC78 said in QCandlestickSet too thick!!:

        If for example a want to show in a Chart one-year data the candlesticks overlap and the effect is quite annoying.

        but isn't it obvious that when you put too much data into a chart that it would overlap upon some point?!?
        You should rather either simplify the data before inserting it into the chart or chose a different more appropriate chart.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        M 1 Reply Last reply Reply Quote 0
        • M
          MiC78 @raven-worx last edited by

          Hi raven-worx,

          Yes, if you put too much data into a chart it would overlap.
          But sometimes I need to see as much data as I can and I would like to narrow the width of the candlestick to achieve it.
          For example, in the next picture I show you one-year data. I know, they are not candlesticks but ohlc. It is just to show you the effect I am looking for.
          0_1517428571797_ohlc.png

          Anyone knows how to either narrow the candlsticks or use ohlc with QCharts?
          Thank you very much in advance.

          M 1 Reply Last reply Reply Quote 0
          • M
            MiC78 @MiC78 last edited by

            @MiC78

            What was I thinking...?
            Sometimes it is better to see the problem from outside of the box.

            The QCandlestickSeries has to wanderfull members:
            setMinimumColumnWidth();
            setMaximumColumnWidth();

            1 Reply Last reply Reply Quote 2
            • First post
              Last post