|
Hi !
I have amazed by the high speed of graph drawing by you control. But exploring its sources, searching for the secret of this high perfomance, i have found in method
void CXGraphDataSerie::Draw(CDCEx *pDC)
folowing string:
if (point.x != oldPoint.x )
{
if ((m_pGraph->m_clInnerRect.PtInRect (point) || m_pGraph->m_clInnerRect.PtInRect (oldPoint)))
CreateCurveGripRgn(oldPoint, point);
if (m_gtType == gtLine)
pDC->LineTo(point);
this means, that line is drawing, only if x coordinate of next point will change. But what if data x coordinate of next point will not be changed noticeably, but y coord. will change greatly ? We will lose this point, and will not see it on the graph ??
|
|
|
|
|
I downloaded the Demo project, and compiled it in Visual Studio 2010.
First I got some compiler errors, which I could fix by defining i differently in CXGraphTestView::AddDataSerie and adding void as type specifier where it was missing.
It then compiled without errors, but the linker gave me two error, it couldn't find CXGraph::InsertLabel(class ATL::CStringT... ) and CXGraphAxis::SetColorRange(..).
This is because Visual Studio 2010 uses ATL for CString which makes CString to be CStringT, but the lib exports the "old" CString.
Any workaround for this available?
|
|
|
|
|
You can switch the Character Set from Multy-byte to Unicode in project properties.
|
|
|
|
|
so,I have the same problem.3Q for answer.
|
|
|
|
|
Where can I get project for Visual Sutdio 2010?
|
|
|
|
|
I've been using this nice component for a while in an option risk package but the person who wrote that part of the system is gone and I have to make some modifications. I'm unable to compile it in Visual Studio 2010. I'd like to be able to do that but, more importantly, I'd like to be able to label the horizontal axis with text and can't figure out how to do that. Could someone please tell me how to link a text array to an axis? Also, looking ahead, I'd like to be allow users to enter data points. More generally, I'd like to get up to speed with this ASAP. Any help would be appreciated. Thank you.
|
|
|
|
|
do you have a license for this nice tool? If we have a modified version of the tool can we release it under GPLv3 as derivative of your software?
|
|
|
|
|
I think that is possible. Cannot contact the original author though..
At least you can share your part with us here.
in another thousand years we'll be machines or gods█
|
|
|
|
|
Xawari; I'm hoping you can give me some guidance. I URGENTLY need to do some work with this charting component and I'm sort of stumbling in the dark. I can figure some things out by looking at the code but my progress would be much faster if I could direct questions to a qualified authority. It's all basic stuff; labeling, editing, etc. Thanks in advance.
Tom Paronis
|
|
|
|
|
I'm very sorry to disappoint you, but last time I touched MFC and XGraph in particular, was 5 years ago and I can only say that I do not remember a single thing there. I can look for example left from the time I used XGraph (AFAIR I wrote a program for simple point-by-point waveform editing). Don't expect that soon, because in best rare cases I have internet access twice a week. 8(
PS: can't understand why comment about license was downvoted.. wtf? o_O
in another thousand years we'll be machines or gods█
|
|
|
|
|
I appreciate your response. I've been plugging away and have been able to figure out most of what I need to know. It would just be easier if I could communicate with somebody who knows the code better than me. I'm sure you know how difficult it can be to wade through other people's code.
Tom
|
|
|
|
|
Download here, no registration (at least for now ):
NetHeaven -> Downloads -> Projects -> XGraph
Just a new URL, I did not update the package itself. If you happen to modify it, PLEASE POST IT HERE as reply to keep the development!
in another thousand years we'll be machines or gods█
|
|
|
|
|
thanks u, this is an unicode version!
|
|
|
|
|
Follow this link with caution!
The URL did not lead to the author or to any updated code.
The root URL of this link requires you to enable JavaScript but then does nothing.
Dangerous?
If updated code is available, it should be published here, in a trustworthy place.
|
|
|
|
|
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.
|
|
|
|