Posted
on May 18, 2011
(permalink)
Thanx for reply. It is working properly if we set the static data in XAxis like from 1 to 12 then it displays the month name as Jan,Feb..
But based upon the range of the date I have to display the month in XAxis.
For ex- From Date-10/01/2010 and To Date- 05/02/2011
then in the XAxis the month should displays as Oct,Nov,Dec,Jan,Feb,Mar,Apr and May
and if From Date-01/01/2011 and To Date- 03/02/2011
then in the XAxis the month should displays as Jan,Feb,Mar.
So, dynamically I need to set the month in XAxis.
I am retrieving the data from the database in number format as shown below:
MonthName Consumption
1 1200
2 500
3 1500
.. ...
12 540
So, in XAxis I have to display MonthName and in Y-Axis the Consumption and based upon the range of date (as mentioned above).
Please help me out.