ubaid.tariq Posted June 26, 2008 Report Share Posted June 26, 2008 Hi .... Is there any way of inserting empty points. suppose i have 3 labels on x-axis and i want to assign values to only 1st & 3rd label, how can i do this?? I have tried missing the middle value but it shows me some garbage value there. Also i dont want to assign it 0. Regards, Ubaid Tariq Quote Link to comment Share on other sites More sharing options...
Frank Posted June 26, 2008 Report Share Posted June 26, 2008 Assuming you have a categorical X-Axis (no X-Values are supplied to the chart), you can assign empty labels by doing: chart.AxisX.Labels = string.Empty; If you are talking about X-values, not string labels, then I would need more information. I need to know the specifics about what data are you setting to the chart, what labels you want to see and what's the chart's gallery (bar, lines, etc.). Quote Link to comment Share on other sites More sharing options...
ubaid.tariq Posted June 27, 2008 Author Report Share Posted June 27, 2008 Hi I am talking about Y-Values. Suppose i have 2 series for Sales & Refunds. I have got 5 labels on X-Axis from year 2000-2004. Now if i don't have any refund value for year 2002, how would i set it blank. Leaving it unassigned shows some garbage value there. I also don't want to set it to 0. Lets make it work on bar chart. Quote Link to comment Share on other sites More sharing options...
Frank Posted June 27, 2008 Report Share Posted June 27, 2008 Set: chart.Data.Y[i,j] = Chart.Hidden; 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.