William Grimsley William Grimsley - 2 months ago 14
Javascript Question

How Do I Add A Space To This Part Of JavaScript Code?

I am trying to edit some JS code but I cannot seem to add a space without the graphs that use this code to produce them, stops working.

I want to add a space into this part of code inbetween "valueSuffix:" and "config.rain.units":

tooltip: {valueSuffix: config.rain.units+'/hr'}

Is it possible?


You mean like this?

tooltip: {valueSuffix: ' '+config.rain.units+'/hr'}