Jump to content
Software FX Community

Stack Bar chart with Value and IniValue


Recommended Posts

How do the chartfx take the chart.Value and Chart.IniValue to draw the stacked bar?

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

If only one series, it is simply draw a box using Chart.Value(0,0) and Chart.IniValue(0,0)

When you have more than one series, it is very complicated. it depends if there is any negtive values and the Value is larger than IniValue or not.

I cannot figure out the rules. Any help  will be appreciated. 

What I figure out is when you set chart.Value(I,J)=0 'here I>0

then the chartfx using chart.IniValue(I,J) draw a line.

but if chart.Value(0,J) < 0 and chart.IniValue>0 you have a extra line on zero.



Link to comment
Share on other sites


Please find the attached example which should hopefully help you with this. Though i must warn you that there seems to be a small nasty bug when you want to draw boxes whoese value and ini value are both negetive [check the green series on x = 3].


Ps : This is with ChartFx 6.2 for Win Form [.Net 2]

Link to comment
Share on other sites


I found You set the data follows:

Chart1.Value(I+1,J) > Chart1.Value(I,J) and Chart1.IniValue(I+1,J) = Chart1.Value(I,J)


Then for each series I, Chartfx to draw new a box using the  Chart1.IniValue(I,J) and Sum(Chart1.Value(0,J) : Chart1.Value(I,J) )


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...