Add operator selector on d3 nodes and use it for calculation