Hi, I am trying to figure out why my tooltips are not showing on a xychart in perspective.
Also I am wondering if its a problom of bool values. The bool values of props in the IDE are in lowercase (true/false) while in python it’s Uppercased (True, False). I am a bit confused in the way writing json/python object structure.
Here is pasted “serie json” props. This is called from within a function that returns the serie object then the single serie is appended to the series array.
def getSerieWithColor(layerId, hexColor):
serie = {
'name':'Layer ' + str(layerId),
'label':'Layer ' + str(layerId),
'defaultState':{'visible':True},
'data':{
'source':'data_layer' + str(layerId),
'x':'GANTRY_POSITION',
'y':'CARRIAGE_POSITION'
},
'xAxis':'x_axis_gantry_pos',
'yAxis':'y_axis_carriage_pos',
'zIndex':layerId,
'render':'line',
'line':{
'appearance':{
'stroke':{'width':0},
'fill':{'color':hexColor, 'opacity':0},
'bullets':[{
'enabled':True,
'render':'circle',
'width':10,
'height':10,
'tooltip':{
'enabled':True,
'text':'hello'
}
}]
}
}
return serie