 |
|
 |
Seems like a cool Graph Tool. But i would like to know if the DLL can work in 64 bit or the author provide a 64 bit version of the dll ?
regards,
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
for your linear trending, what was the formula that you used?
|
|
|
|
 |
|
 |
How To Port The Control To WINDOWS CE?
|
|
|
|
 |
|
 |
Hallo ich habe mir von der Internetseite codeproject.com das Demo von
Xgraph heruntergeladen. Mit Microsoft Visual Studio C++ 2008 (Prof.)
habe ich dieses Projekt geöffnet. Beim Übersetzen erscheinen zahlreiche
Fehlermeldungen. Wahrscheinlich liegt es daran, dass dieses Projekt ein
MFC Projekt ist. Müsste ich in Microsoft Visual Studio C++ 2008 (Prof.)
irgendwelche Einstellungen vornehmen?
Fehlermeldung:
Fehler 1 error C4430: Fehlender Typspezifizierer - int wird
angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
c:\dokumente und
einstellungen\user\desktop\xgraph_demo\include\gfxutils.h 70
XGraphTest
|
|
|
|
 |
|
 |
Hello, I want to use this control on the VS2008 project.
I have used it on VC6, it was really nice control.
However, I cannot use it on the VS2008.....
Please, somebody help me..
|
|
|
|
 |
|
 |
I am using in VS2008 now...
|
|
|
|
 |
|
 |
Hi , XGraph10 can support Bar chart ? or any plan for supporting bar chart ?
|
|
|
|
 |
|
 |
Compile under vs2005, may help someone.
1. open the project under the vs2005;
2. build it, there are some errors, may “fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]”, open the stdafx.h, and add the code “#define _AFXDLL”;
3. build it again, may some errors like this “error C2065: 'i' : undeclared identifier”, please define it , for example, modify the code “for (i = 0; i < (m_nCount + nPoints); i ++)” to “for (int i = 0; i < (m_nCount + nPoints); i ++)”. All the other errors like this, may change it.
4. then build the project, “error C2668: 'pow' : ambiguous call to overloaded function” may be found, and make the code “double(i+1)” replace the code “i+1” in the line “(pow (i+1, 6));”;
5. now, there are less errors, may some errors about vector, for example, let the code line “m_ColorRanges.erase (&m_ColorRanges[nRange]);” replaced by the line “m_ColorRanges.erase (m_ColorRanges.begin()+nRange);”; all the other same errors may modified like this.
6. and then open the menu project->properties->configuration properties->c/c++->command line, add the code “/wd4430” to the box.
7. all of the errors have modified, and have a good fun.
|
|
|
|
 |
|
 |
Good Work for vs2005, it also works with vs2008/vs2010 using this method.
maruigxxg wrote: Compile under vs2005, may help someone. 1. open the project under the
vs2005; 2. build it, there are some errors, may “fatal error C1189: #error :
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll
version. Please #define _AFXDLL or do not use /MD[d]”, open the stdafx.h, and
add the code “#define _AFXDLL”; 3. build it again, may some errors like this
“error C2065: 'i' : undeclared identifier”, please define it , for example,
modify the code “for (i = 0; i < (m_nCount + nPoints); i ++)” to “for (int i
= 0; i < (m_nCount + nPoints); i ++)”. All the other errors like this, may
change it. 4. then build the project, “error C2668: 'pow' : ambiguous call to
overloaded function” may be found, and make the code “double(i+1)” replace the
code “i+1” in the line “(pow (i+1, 6));”; 5. now, there are less errors, may
some errors about vector, for example, let the code line “m_ColorRanges.erase
(&m_ColorRanges[nRange]);” replaced by the line “m_ColorRanges.erase
(m_ColorRanges.begin()+nRange);”; all the other same errors may modified like
this. 6. and then open the menu project->properties->configuration
properties->c/c++->command line, add the code “/wd4430” to the box. 7.
all of the errors have modified, and have a good fun.
|
|
|
|
 |
|
|
 |
|
 |
I still have a problem,since i have modified all the problems,it occurs that:fatal error C1083: 无法打开预编译头文件:“.\Debug\XGRAPH.pch”: No such file or directory
|
|
|
|
 |
|
 |
The (probable) incorrect behavior was noticed on the following setup:
- Display some linear data serie on the graph (e.g 1-10000 on the X-axis and some random data between 1500 and 2500 on the Y-axis)
- Autoscale the graph using CXGraph::Autoscale(). Y-grid step becomes 20
- Bring some random window (e.g Notepad) on top of the graph. This causes an internal CXGraphAxis::Redraw() and CXGraphAxis::Autoscale() (presuming that both axis are left autoscalable)
- I notice that the Y-grid step unexpectedly changes to 50, Graph line also changes it's placement in the control.
After tweaking on the XGraph code I noticed the following -> At the end of the function CXGraphAxis::Autoscale() the axis-start is tweaked to be a divisor of the tick step (see CXGraphAxis::AdaptAxis())
The problem is that AdaptAxis() changes the member m_fCurMin/m_fCurMax instead of the data serie fixed min/max. This results in sudden change of axis' scale after continuous redraw of the graph.
Best regards,
Dido.
|
|
|
|
 |
|
 |
Great work Gunnar;
I want to know how to print serval charts in one page,how to modify the function OnFilePrint()...
Best Regards~
|
|
|
|
 |
|
 |
Has anyone gotten this to compile under VS2005 or VS2008? I have having lots of problems getting the control to compile and the demo to build.
Thanks in advance.
|
|
|
|
 |
|
 |
Me too,a lot of problems ,can you help me?
|
|
|
|
 |
|
 |
I went through all the charting projects and this is the one that comes closest to my needs. It has great potential and if you would like my maintenance, I'll keep in touch.
For anyone that tries this out, there is a missing control in the CCurveDlg. (not sure why you didn't use property sheets.) Open the resource editor, add a combobox and give it an id of IDC_CBFILLCURVE and the properties will then work fine.
Best, Dan.
|
|
|
|
 |
|
 |
I wants to know that xgraph is supporting VS 2005 ?
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hello please tell me how can i use this chart in VB 6.0
|
|
|
|
 |
|
 |
I have downloaded binaries and source code but the printing doesn't work with the original binaries and the recomplied ones. I always get a blank page. Any idea?
|
|
|
|
 |
|
 |
There is a bug in function CXGraph::GetMinMaxForData, sometimes it can't get the correct data range.
My solution is to add 4 lines at the beginning of the function.
void CXGraph::GetMinMaxForData (CXGraphDataSerie& serie, double& fXMin, double& fXMax, double& fYMin, double& fYMax)
{
//add by hamo2008
//reset the mins and maxs to the first data
fXMax = serie.m_pData[0].fXVal;
fXMin = serie.m_pData[0].fXVal;
fYMax = serie.m_pData[0].fYVal;
fYMin = serie.m_pData[0].fYVal;
// check mins and maxs
for (long i = 0; i < serie.m_nCount; i++)
|
|
|
|
 |
|
|
 |