PySide6.QtGraphs.QBarDataItem¶
- class QBarDataItem¶
- The - QBarDataItemclass provides a container for resolved data to be added to bar graphs.- Details- A bar data item holds the data for a single rendered bar in a graph. Bar data proxies parse data into - QBarDataIteminstances for bar graphs.- Synopsis¶- Methods¶- def - __init__()
- def - rotation()
- def - setRotation()
- def - setValue()
- def - value()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - __init__()¶
 - Constructs a bar data item. - __init__(value)
- Parameters:
- value – float 
 
 - Constructs a bar data item with the value - value.- __init__(value, angle)
- Parameters:
- value – float 
- angle – float 
 
 
 - Constructs a bar data item with the value - valueand angle- angle.- rotation()¶
- Return type:
- float 
 
 - Returns the rotation angle in degrees for this data item. - See also - setRotation(angle)¶
- Parameters:
- angle – float 
 
 - Sets the rotation angle - anglein degrees for this data item.- See also - setValue(val)¶
- Parameters:
- val – float 
 
 - Sets the value - valto this data item.- See also - value()¶
- Return type:
- float 
 
 - Returns the value of this data item. - See also