Skip to content
  • 0 Votes
    3 Posts
    376 Views
    M

    Hi SGaist , thanks for your welcome... I'm drawing these lines like this

    chartview=QChartView(self.__candlechart) chartview.setRubberBand(QChartView.HorizontalRubberBand) chartview.setRenderHint(QPainter.Antialiasing) lineserie1=QLineSeries() for i in self.times: lineserie1.append(QPointF(i,random.random())) pen = lineserie1.pen() pen.setWidth(3) pen.setBrush(QBrush(QColor(255,0,0))) lineserie1.setPen(pen) lineserie2=QLineSeries() for i in self.times: lineserie2.append(QPointF(i,random.random())) pen = lineserie2.pen() pen.setWidth(3) pen.setBrush(QBrush(QColor(0,0,255))) lineserie2.setPen(pen) self.__candlechart.addSeries(lineserie1) self.__candlechart.addSeries(lineserie2)

    If I change the order (I mean add the lines before set rubber band option I got the same result.

    Thanks!

  • 0 Votes
    2 Posts
    282 Views
    eyllanescE

    @TheLumbee https://doc.qt.io/qt-5/qcandlestickseries.html#sets ?