I created a script (see excerpt below) to dynamically add pens to an Easy Chart object but I can’t seem to set some of the pen attributes when the Easy Chart is a component within a template instance. If I place the script inside the extension function ‘onTagsDropped’, when the Easy Chart component is placed on a window (no template) the pens are added as expected with attributes correctly set. However, when the chart is a component of a template instance on a window, not all the attributes get set correctly. In particular, the ‘color’ and ‘userRemovable’ attributes seem to be overwritten from what I set in the script.
Any suggestions?
Thanks
Dan
aggregation = 'Average'
axis = 'Default Axis'
subplot = '1'
enabled = 'True'
color = penColor
dashPattern = ''
renderStyle = '1'
lineWeight = '1'
shape = '0'
fillShape = 'True'
labels = 'False'
groupName = ''
digital = 'False'
overrideAutocolor = 'True'
hidden = 'False'
userSelect = 'True'
sortOrder = ''
userRemovable = 'True'
newRow = [penName, tagPath, aggregation, axis, subplot, enabled, color, dashPattern, renderStyle, lineWeight, \
shape, fillShape, labels, groupName, digital, overrideAutocolor, hidden, userSelect, sortOrder, userRemovable]
#add pen
self.tagPens = system.dataset.addRow(self.tagPens, newRow)