How to add new line to jquery gadget tics

I use jQuery Flot to create some graphs. So far I have been able to format Ticks using tickformatter

The graph is as follows: http://i1358.photobucket.com/albums/q779/Angel_Ruiz_Morales/Capture.gif

The only problem I'm currently facing is that I would like Ticks to look like this: Today \ n {TIME}

I tried to add the \ n character and see it added, but for some reason the fleet still displays "Today" {TIME} on a line, rather than on separate lines.

Does anyone know a way to introduce a new line?

Thanks!

+4
source share
2 answers

You need to use <br> instead of \n . Tick ​​marks are HTML.

+7
source
  timeformat: "%m/%d/%y <br> %H:%M:%S" 

Working example: http://jsfiddle.net/72u66r0m/

0
source

All Articles