I apologize if this is in the wrong forum, but I'm looking for some pretty advanced technical information. I am wanting to incorporate the ActiveX object for SAS/GRAPH v9 into a C# Winforms app for interactive on-the-fly data loading and visualization of pre-summarized data (the benefits being that SAS/GRAPH v9 is very robust and already incorporates hardware acceleration, and would save me a lot of time from having to write my own graphing library or buy a commercial one (or download a free one) that isn't nearly as feature-rich when I already have SAS EG), and so far I have been successful in doing so. I managed to find a post out there on SAS-L doing a google search and came across a way to do it for the previous version of SAS/GRAPH (this was for getting it to work in VB6) and went from there.
I have the object created in a C# Winforms app doing a 3D Bar Chart as I'll show in the example below, have set all the data, roles, and properties for the objects for the graph, even have it doing a smooth auto-rotate on the Y axis (which looks really cool).
The only thing that's left to tackle is sorting the data set, which seems to not work right. When the graph appears no matter what you set the SetSortOrder of a Category role to, it will appear as either "Data" for Text or "Ascending" for Numeric. I'm sure I can presort the data as a workaround, but would like to be able to do it programmatically without having to interface the data options. If anyone already knows how to do this (i.e. they've done it in VB/C++/VBA/etc) I'd appreciate the help. I figured this might be a good place to start since you can place a ActiveX control in Excel or Access and someone may have already figured this out. Here are some snippets from my test code, and the part where I'm telling the Date variable to have a SetSortOrder("Descending") is what seems to have no effect: