We help IT Professionals succeed at work.
Get Started

Flot Charts and Using Text instead of number in Axis

theideabulb
theideabulb asked
on
675 Views
Last Modified: 2012-06-27
If you look at alot of the chart/graphic examples that use Flot, all the bottom axis have numbers. Mostly representing Month or Days of Month. That is fine, but most of the time, I need to use a actual word. For my question though, lets use name of the month.
In these examples, if I change the numbers 1 through 12 and make them Jan Feb Mar Apr, etc, etc, the graphs disappear. I am not sure how or why this happens. In some cases the number or word is just in a JAN so why does this effect the chart.

Here is an example

<tbody> <tr> <th>1</th><td>256</td><td>1207</td> </tr> <tr> <th>2</th><td>203</td><td>1000</td> </tr> <tr> <th>3</th><td>241</td><td>1050</td> </tr> </tbody>

Open in new window


But if i change it to this:

<tbody> <tr> <th>Jan</th><td>256</td><td>1207</td> </tr> <tr> <th>Feb</th><td>203</td><td>1000</td> </tr> <tr> <th>Mar</th><td>241</td><td>1050</td> </tr> </tbody>

Open in new window


All the data for those 3 months will disappear.

Does anyone know how to change or what to look for to allow text to appear in there?

Thank you
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE