Bugs item #3391663, was opened at 2011-08-15 01:17
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3391663&group_id=51305
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: any
Group: last released version
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxFreechart: report about a bug of categoryaxis and patch
Initial Comment:
I'm using freechart to drawing ganttchart and found a bug of categoryaxis when
there are only one category(one task in ganttchart),freechart just can't show
any chart.
bellow is the patch:
//--------------------------------------
categoryaxis.cpp
//--------------------------------------
void CategoryAxis::GetDataBounds(double &minValue, double &maxValue)
{
minValue = 0;
if (m_categoryCount > 1) {
maxValue = m_categoryCount - 1;
}
else if ( m_categoryCount == 1 )
{
maxValue = 1;
}
else {
maxValue = 0;
}
}
this patch runs OK,but is there more elegant fixing?
BTW:I'm using freechart to draw "resource occupy" ganttchart,but I found that
it' really not so elegant as you have to drawing in"task" mode.
"resource occupy" chart means there many resource(such as machines),and occupy
by task(such as client/order) along time line.
Is there a elegant way to drawing such chart?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3391663&group_id=51305
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
wxCode-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxcode-users