code: def __init__(self, data):
      pg.GraphicsObject.__init__(self)
      self.data = (
          data  ## data must have fields: time, open, close, min, max
      )
      self.generatePicture()
  
file_path: pyqtgraph/pyqtgraph/examples/customGraphicsItem.py
imports: import pyqtgraph
  from pyqtgraph import QtCore, QtGui
label_desc: Use image node_id 1 to create a new CandlestickItem object from inherited base classes: pg with example: obj = CandlestickItem(data)