Jump to content
Software FX Community

How to insert empty points


Recommended Posts

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.



Ubaid Tariq 

Link to comment
Share on other sites

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.).

Link to comment
Share on other sites


 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. 


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...