William Grimsley William Grimsley - 1 year ago 87
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?

Answer Source

You mean like this?

tooltip: {valueSuffix: ' '+config.rain.units+'/hr'}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download