cgd Posted July 6, 2008 Report Share Posted July 6, 2008 Dear sir: I have trouble in making Bar Chart with stacked format, like attach file could you give me some suggestions or sample codes to do that? tks a lot BR, cgd Quote Link to comment Share on other sites More sharing options...
VekiPeki Posted July 7, 2008 Report Share Posted July 7, 2008 Does this work? (samples & resources center) chart1.Gallery = SoftwareFX.ChartFX.Gallery.Gantt; chart1.Stacked = SoftwareFX.ChartFX.Stacked.Normal;// Populate with random dataSystem.Random r;r=new System.Random ();int i,j;chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 2, 6);for (i=0;i<2;i++) for (j=0;j<6;j++) { chart1.Value[i, j] = r.NextDouble() * 100; chart1.Legend[j] = "Prod " + j.ToString() ; }chart1.CloseData(SoftwareFX.ChartFX.COD.Values);// Visualchart1.Border = true;chart1.BorderEffect = SoftwareFX.ChartFX.BorderEffect.Raised;chart1.Grid = SoftwareFX.ChartFX.ChartGrid.Horz; Quote Link to comment Share on other sites More sharing options...
cgd Posted July 7, 2008 Author Report Share Posted July 7, 2008 Dear sir: Tks for your reply, I have been test it before..... But it seems like ChartFx for .NET 6.2 style Now i using Chart Fx 7 for VS.Net 2005(web form/Visual basic), and it can't be work Could you give me samples for Chart Fx 7? Tks a lot BR, cgd Quote Link to comment Share on other sites More sharing options...
VekiPeki Posted July 8, 2008 Report Share Posted July 8, 2008 Sorry, I don't have .Net version installed. Try checking the samples in your Samples&Resources center. Basically you only have to open the Properties window for your ChartFX control, and set these two properties: Gallery --> GanttStacked --> Normal Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.