robcounty Posted August 14, 2007 Report Share Posted August 14, 2007 Hi All, These forums are great, found most of what I need as a noob to make a new chart. One problem still haunting me though. I have a chart with multiple data series. The labels are dates. Some of the data does not exist for certain dates. No problem, I use Chart1.OpenData(COD.Values Or COD.AllocHidden however, although this hides the points, wherever there is a hidden point the line goes straight up to the top of the graph, as though the hidden point had a value of eleventy billion. Is there a way to correct this? I would like the line to just stop at 8/13/07 and start at 8/15/07 if there's no data for 8/14/07. Thanks Rob Quote Link to comment Share on other sites More sharing options...
robcounty Posted August 14, 2007 Author Report Share Posted August 14, 2007 btw one thing that really exaggerates the problem is if do this when you're done filling the graph: Chart1.AxisY.Max += 2 Quote Link to comment Share on other sites More sharing options...
JuanC Posted August 16, 2007 Report Share Posted August 16, 2007 Can you verify the version of the ChartFX.WebForms.dll assembly you are using? Are all of your points hidden? Our default behavior is to do what you expect. If there is no data for a specifc day the line will stop on the previous point and restart on the next. Can you duplicate in a small dummy page (with hardcoded data) so that we can test the same code here? JuanC Quote Link to comment Share on other sites More sharing options...
robcounty Posted August 16, 2007 Author Report Share Posted August 16, 2007 I am using chartfx.lite.dll assembly 6.0.839.0, which is 389,120 bytes dated 3/31/2004, which is supposedly the latest (I downloaded it yesterday or the day before). The code below will reproduce the problem. Just paste a graph on your form, put this in the form_shown and run it. I'm running VS 2005 SP1. Thanks,Rob Chart1.Gallery = Gallery.LinesChart1.ClearData(ClearDataFlag.AllData)Chart1.OpenData(COD.Values Or COD.AllocHidden, 1, COD.Unknown)Chart1.Legend(0) = "8/1/07"Chart1.Legend(1) = "8/15/07"Chart1.Legend(2) = "8/31/07"Chart1.Value(0, 1) = 10Chart1.Value(0, 2) = 20Chart1.Value(0, 4) = 30Chart1.SerLeg(0) = "Stuff"Chart1.CloseData(COD.Values)Chart1.AxisY.Max += 2Chart1.AxisY.Min = 0Chart1.ToolBar = TrueChart1.SerLegBox = True Quote Link to comment Share on other sites More sharing options...
Frank Posted August 18, 2007 Report Share Posted August 18, 2007 Hidden points are not supported in Chart FX Lite. You started your post in the wrong forum, hence the confusion. I'm moving it to the right one. Quote Link to comment Share on other sites More sharing options...
robcounty Posted August 20, 2007 Author Report Share Posted August 20, 2007 OK, thanks. Sorry, just picked a forum that looked close. 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.