Link to home
Start Free TrialLog in
Avatar of theideabulb
theideabulbFlag for United States of America

asked on

Flot Charts and Using Text instead of number in Axis

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
Avatar of Eyal
Eyal
Flag of Israel image

you can do it with this jQuery component
http://code.google.com/p/flot/
Avatar of theideabulb

ASKER

thank you, but yes, i stated it was using Flot in my question.
ASKER CERTIFIED SOLUTION
Avatar of theideabulb
theideabulb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found this answer and it solves the issue that I was looking for.  I was able to put text into the x axis