To modify the scale legend in a waveform chart programmatically, create Property Nodes for each element of the legend you want to modify. For example, if you want to modify the scale label, right-click the string element in the scale legend and create a Property Node for that element.