J'utilise ce code pour créer mon graphique: https://github.com/pyqtgraph/pyqtgra...raphicsItem.py
Je remplace la variable data pars un fichier csv.
Les lignes sont faites comme ça :
J'aimerais savoir comment convertir la date 'timestamp' pour la mettre sur l'axe des x.Code:
1
2 timestamp,close,foreignNotional,high,homeNotional,lastSize,low,open,symbol,trades,turnover,volume,vwap 2019-11-07 21:40:00+00:00,9190.5,36024221.0,9200.0,3922.7451237799987,1067.0,9169.0,9180.5,XBTUSD,6202,392274512378,36024221,9183.5798
Actuellement j'utilise une boucleCode:self.x = [i for i in range (len(self.open))]
Une image pour montrer directement :
Pièce jointe 516313
Merci