|
|
HI,
I am trying to use this Charting in my project, which i am failin to do.
1. I had included the XGrapgh10.h and Dll and libary files.
2. Now i am trying to Use that XGraph object. it crashes
deeps1985
|
|
|
|
|
Hi xawari,
I know it's been a long time you've don't take a look at the project, but is there any chance to get the updated release of this? Following your link doesn't lead to anything, and I'm struggling to understand how to solve a issue that is driving me mad. On WinCE Zooming on a drawn area can causes sometimes an access violation, and I don't understand where it could be the problem! I'm currently running 1.05 version.
Thanks in advance for you help,
Davide
|
|
|
|
|
I have downlowded the Demo, but I'm unable to compile the Demo Files.
Everytime I get the Message:
XGraphTest error LNK2019: Nicht aufgelöstes externes Symbol '"public: class CXGraphLabel & __thiscall CXGraph::InsertLabel(class ATL::CStringT<char,class strtraitmfc_dll<char,class="" atl::chtraitscrt<char=""> > >)" (?InsertLabel@CXGraph@@QAEAAVCXGraphLabel@@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)', verwiesen in Funktion '"protected: void __thiscall CPropertyView::OnInsertLabel(void)" (?OnInsertLabel@CPropertyView@@IAEXXZ)'
XGraphTest error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall CXGraphAxis::SetColorRange(int,double,double,unsigned long,unsigned long,class ATL::CStringT<char,class strtraitmfc_dll<char,class="" atl::chtraitscrt<char=""> > >,unsigned int)" (?SetColorRange@CXGraphAxis@@QAEXHNNKKV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@I@Z)', verwiesen in Funktion '"public: void __thiscall CXGraphTestView::AddDataSerie(bool)" (?AddDataSerie@CXGraphTestView@@QAEX_N@Z)'
What I'm doing wrong or what is the Problem?
I'm using: Microsoft Visual C++ .NET Version 7.1.6030
Please Help me.
many Thanks
O. Erb
|
|
|
|
|
Hello,
Does somebody have a new version of this project ?
I search a version where maximum bugs are fixed and with new features ...
Thank for you help
Stéphane
|
|
|
|
|
I’m trying to use this project but experiencing a lot of bugs especially with zooming and COleDateTime dates representation on X-axis. For example, using m_Graph[0].GetXAxis(0).SetDisplayFmt("%d-%m-%y") and choosing zooming box by a mouse, will cause graph shrinking as long as someone will move a mouse, but graph wouldn’t shrink if SetDisplayFmt("%d-%m-%y") line is commented.
It’s very disappointing that supplied compilable demo project by the author Gunnar Bolle is missing a lot of curve property dialogs and definitely is not the same as EXE demo. Therefore double click on any curve will crash the project :-<.
Can someone who corrected above (or other) bugs do me a BIG... favor and send me (compressed) compilable working demo project, I would appreciate this very much and will return back my gesture.
Please send me directly to:
albert33ja@yahoo.com
|
|
|
|
|
I get compile-errors in xgraph.h when recompiling after including <xgraph10.h> to my application (see the first five or so below). I believe this is caused by an incorrect compiler-option or something but I have not been able to sort it out. Can anyone give me a hint? Thanks in advance!
maladuk
PS! I use: Visual C++ 6.0
--------------------Configuration: PINEHBV - Win32 Release--------------------
Compiling...
RunHBVPredictionsDlg.cpp
Automatically linking with XGraph10.dll
\graphing/XGraph_src/xgraph.h(162) : error C2059: syntax error : 'string'
\graphing/XGraph_src/xgraph.h(162) : error C2143: syntax error : missing ';' before '}'
\graphing/XGraph_src/xgraph.h(162) : error C2238: unexpected token(s) preceding ';'
\graphing/XGraph_src/xgraph.h(166) : error C2143: syntax error : missing ';' before 'public'
|
|
|
|
|
1. in debug mode COleDateTime ASSERT failed
you must modify code in AxisDlg.cpp,my solution
COleDateTime time1;
if ( time1.GetStatus() = COleDateTime::valid )
{
m_StartDate = m_StartTime = m_EndDate = m_EndTime = time1;
}else
{
m_StartDate = COleDateTime::GetCurrentTime();
m_StartTime = COleDateTime::GetCurrentTime();
m_EndDate = COleDateTime::GetCurrentTime();
m_EndTime = COleDateTime::GetCurrentTime();
}
2.in Resouces Edit: CURVE Dialog(IDD_CURVE) this control:IDC_CBFILLCURVE no exist,you must add it youself
3.in XGRAPH.CPP all include line: AFX_MANAGE_STATE(AfxGetModuleState) must modify:
AFX_MANAGE_STATE(AfxGetAppModuleState)
|
|
|
|
|
|
hello , Im using this wondefull control but facing one problem with this.
I cant able to print whole graph. when i print it both axis arent print , rest of the graph is printing. Can any body help me ?
|
|
|
|
|
HI ,
I am using this wonderfull graph. but when i try to use "Savebitmap" function. It generate .bmp file but when i open this .bmp file getting message
"drawing failed". Why so ?
Please help me if anyone know this reason.
|
|
|
|
|
Well thanks all pof u but i resolve both of my problems.
|
|
|
|
|
Sir,
I am getting this below error while i compile Xgraph Src in debug mode.
Compiling...
StdAfx.cpp
c:\documents and settings\maxx\desktop\xgraph_src\stdafx.cpp(5) : fatal error C1083: Cannot open precompiled header file: 'Debug/XGRAPH.pch': No such file or directory
Error executing cl.exe.
XGRAPH10d.dll - 1 error(s), 0 warning(s)
PLease Help me what to do for this error.
Thnx in advance.
|
|
|
|
|
Look at message: missing xgraph10d.dll. (In debug configuration you must modify cpp file settings to "Automatic use of precompiled headers" like in Release configuration.)
|
|
|
|
|
I'm playing with demo project. Just after resizing the window to minimal possible size and restoring it original graph is NOT the same! The same is for zoom - after zooming out and going back (by Num-) the graph is NOT the same as before zooming. It it normal?
|
|
|
|
|
memory leakage found in the assignment function of CXGraphDataSerie
CXGraphDataSerie& CXGraphDataSerie::operator =(const CXGraphDataSerie& copy)
{
/// should add following statement
if (m_pData != NULL && m_bAutoDelete)
delete []m_pData;
m_bVisible = copy.m_bVisible;
m_bShowMarker = copy.m_bShowMarker;
m_bFillBeneath = copy.m_bFillBeneath;
m_pGraph = copy.m_pGraph;
m_nLineStyle = copy.m_nLineStyle;
m_nLineSize = copy.m_nLineSize;
m_gtType = copy.m_gtType;
m_nXAxis = copy.m_nXAxis;
m_nYAxis = copy.m_nYAxis;
m_crColor = copy.m_crColor;
m_nFillStyle = copy.m_nFillStyle;
m_nFirstVisible = copy.m_nFirstVisible;
m_nLastVisible = copy.m_nLastVisible;
m_bFillTransparent = copy.m_bFillTransparent;
m_CurveRegions = copy.m_CurveRegions;
m_nMarkerType = copy.m_nMarkerType;
m_nMarker = copy.m_nMarker;
m_nMarkerSize = copy.m_nMarkerSize;
m_bAutoDelete = copy.m_bAutoDelete;
m_nCount = copy.m_nCount;
m_nIndex = copy.m_nIndex;
m_cLabel = copy.m_cLabel;
m_PS = copy.m_PS;
m_nFillCurve = copy.m_nFillCurve;
m_crFillColor = copy.m_crFillColor;
if (copy.m_bAutoDelete && copy.m_pData)
{
m_pData = new TDataPoint[copy.m_nCount];
memcpy(m_pData, copy.m_pData, sizeof(TDataPoint) * copy.m_nCount);
}
else
m_pData = copy.m_pData;
return *this;
}
Limin
|
|
|
|
|
Similarly:
CXGraphDataSerie& CXGraph::SetData
.....
if (nCurve == m_Data.size ())
{
// New data serie
.....
serie.m_pData = (TDataPoint*) new TDataPoint[nCount];
.....
}
else
{
// existing data serie, just update
.....
m_Data[nCurve].m_pData = pValues;
.....
}
|
|
|
|
|
I cant seem to get this to work in a dialog box... I used the example earlier of...
CRect clRect;
pWnd = GetDlgItem(IDC_XGRAPH);
pWnd->GetClientRect(&clRect);
m_Graph.Create(_T("XGraph"),_T(""), WS_CHILD|WS_VISIBLE, clRect, pWnd, IDC_XGRAPH);
but then I get another exception and it points to something about defwndproc or something... has anyone gotten this to work in a dialog window? any help would be great...
Carlos Cook
|
|
|
|
|
I use the same Create function and then handle WM_SIZE to move it on the dialog where I want it. Did you check the value of pWnd from the GetDlgItem() call?
#ifdef USE_XGRAPH
if (!::IsWindow(m_Graph.m_hWnd))
{
m_Graph.Create(_T("XGraph"),_T(""), WS_CHILD | WS_VISIBLE, clRect, this, 1001);
m_Graph.SetData(NULL,0,0,0,false);
m_Graph.SetCursorFlags(XGC_LEGEND | XGC_VERT | XGC_ADJUSTSMOOTH);
// Force cursor to snap to the first curve
m_Graph.ForceSnap(0);
AddDataSerie(true);
}
#else
...
Then in OnSize handler
#ifdef USE_XGRAPH
...
m_Graph.MoveWindow(&rcGraph);
...
#endif
|
|
|
|
|
sweet... thanks.. I ended up writing my own in opengl... its pretty sweet.. this one just wasn't for me... thanks tho..
|
|
|
|
|
"I ended up writing my own in opengl..."
Is it an opensource project? Can you share it? ^_^
void happens
|
|
|
|
|
Use the lib and dll of debug version.
It will remove the crash of dialog based App in debug mode.
|
|
|
|
|
Hi,everyone:
Recently, I use this control to do some project. I find a problem in the function OnPaint() in XGraph.cpp. When OnPaint() do DoubleBuffer , it only draw everything in the memory, at last not draw it back to the CPaint. Sow when you put the source code into your project, you can find that drawed lines can't be shown.
The source code is in void CXGraph::OnPaint(). I do it like this:
//Added By Paul_Yang 2006-7-10
if (m_bDoubleBuffer) {
pdc->BitBlt(clRect.left, clRect.top, clRect.Width(),
clRect.Height(), pDC, clRect.left,
clRect.top, SRCCOPY);
}
//End Added
pDC->RestoreDC(nSaveDC);//Line at 1111 in original source code
pDC->Detach();
delete pDC;
if (pmdc)
delete pmdc;
delete pdc;
|
|
|
|
|
i made a some project with VC6.0. But "OnLButtonDblClk " do not work? would anyone meet the same position? My english is not very good.
I am a chinese.
|
|
|
|
|
when I fill x-y with following values and show markers,I found marker are not match with the curve, why?
1170 1.000
1105 1.700
1075 2.200
1040 3.300
1000 4.200
990 5.100
985 5.800
1000 7.000
1010 8.700
1012 10.400
1025 12.100
1040 13.900
1020 15.700
1010 17.000
1010 18.300
1000 19.500
920 23.800
830 34.200
|
|
|
|