Fixed graph template so it could be feed with data using decimal  comma,...

... it will convert it to a JS array without problems.

This is important because otherwise monitor is broken for all locals with decimal point.

Also forwardport it to 3.1