QCandlestickSet too thick!!



  • 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!!


  • Moderators

    @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.



  • 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.



  • @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();


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.