__init__.py (770B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\graphs\__init__.py 2 3 4 def PrimeGraphData(graphData): 5 loadData = [] 6 for each in graphData: 7 if isinstance(each, tuple): 8 label, proportion, color = each 9 segmentParams = GraphSegmentParams(proportion, color, tooltip=label) 10 loadData.append(segmentParams) 11 else: 12 loadData.append(each) 13 14 return loadData 15 16 17 class GraphSegmentParams(object): 18 19 def __init__(self, proportion, color, tooltip = None, showMarker = False, sizeFactor = 1.0): 20 self.proportion = proportion 21 self.color = color 22 self.tooltip = tooltip 23 self.sizeFactor = sizeFactor 24 self.showMarker = showMarker