small optimization using preprocessor macro in m.graph.js