Sorting on X-Axis in Chart in RTC

wellington
Member Posts: 10
Hello,
I have generated a chart where on X-Axis, I have months like January 2011, February 2012, March 2012 etc., and on the Y-Axis I have total sales amount for that month.
The table from where I get data has following structure.
No. Month Sales
1 Jan 2011 $10,000
2 Feb 2011 $5,000
3 Apr 2011 $9,000
Now when I generate a chart, it shows following way.
15|
|
|
10| x
| x
|
5|_____________x_____________________
Apr 2011 Feb 2011 Jan 2011
Here, as you can see X-Axis values are sorted ascending. Instead, I want to sort it in the periodic way.
i.e. Jan 2011...Feb 2011...Apr 2011 etc.
Can you please help me solving it?
Regards.
I have generated a chart where on X-Axis, I have months like January 2011, February 2012, March 2012 etc., and on the Y-Axis I have total sales amount for that month.
The table from where I get data has following structure.
No. Month Sales
1 Jan 2011 $10,000
2 Feb 2011 $5,000
3 Apr 2011 $9,000
Now when I generate a chart, it shows following way.
15|
|
|
10| x
| x
|
5|_____________x_____________________
Apr 2011 Feb 2011 Jan 2011
Here, as you can see X-Axis values are sorted ascending. Instead, I want to sort it in the periodic way.
i.e. Jan 2011...Feb 2011...Apr 2011 etc.
Can you please help me solving it?
Regards.
0
Answers
-
Could it be that the table contains the Dates as strings?
In NAV 2009 R2 charts with a discrete axis always sort the strings alphabetically.
In NAV 2013 we have switched off the default sorting, in order to allow using a discrete axis inorder to allow situation where the sorting in the table is important, like for custom data axis rendering.“This posting is provided "AS IS" with no warranties, and confers no rights.”
Christian Abeln
Program Manager Microsoft
Dynamics NAV
blogs.msdn.com/cabeln/0 -
Christian Abeln wrote:Could it be that the table contains the Dates as strings?
In NAV 2009 R2 charts with a discrete axis always sort the strings alphabetically.
In NAV 2013 we have switched off the default sorting, in order to allow using a discrete axis inorder to allow situation where the sorting in the table is important, like for custom data axis rendering.
You're right my friend. The table contains the Dates as strings, as I have to show them in X-axis in <Month Text> <Year,4> format. I hope we get more control over Chart customization in NAV 2013. Btw, when is NAV 2013 going to be released?
Thanks for your post.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions