.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > Gaps in Stacked Column Chart
 

Gaps in Stacked Column Chart

Hello,
I'm having problems with a stacked column chart. I get gaps in the column when there is an empty data point for one of the series. If I remove the series with empty data points or fill the gaps then there are no gaps. How can I remove the gaps without changing the data I want to display in the graph?
Thanks,

James
macleojw

Insert empty points to the chart with the DataManipulator, for example:

	Chart1.DataManipulator.InsertEmptyPoints(1, IntervalType.Days, "Series1, Series2")

See, Aligning Data (Chart Controls) http://msdn.microsoft.com/en-us/library/dd456707(VS.100).aspx

  • Marked As Answer bymacleojw 17 hours 38 minutes ago
  •  
sipla
Hi James,

I'm not sure what you mean by the gaps. If you went through the datapoints in the series and removed all the datapoints that were empty, would this make any difference in the appearance of your chart?

Also, if you are using X values for your data points, then I would expect the existance of the gaps to be logically correct. If you are not making use of the X values, you can try setting IsXValueIndexed of the series to True.

Peter
Peter Choi - SQL
Hi Peter,
Thanks for your response. The gaps do correspond to empty points. I have tried setting EmptyPointValue to zero, but this doesn't make any difference. Is there any way to get the empty points to be zero?
The points do have an X value.

James
macleojw
Hi James,

I'm still having trouble visualizing what your chart currently looks like. Would it be possible for you to post a link to images showing what your chart currently looks like and how you want your chart to look?
Peter Choi - SQL

Insert empty points to the chart with the DataManipulator, for example:

	Chart1.DataManipulator.InsertEmptyPoints(1, IntervalType.Days, "Series1, Series2")

See, Aligning Data (Chart Controls) http://msdn.microsoft.com/en-us/library/dd456707(VS.100).aspx

  • Marked As Answer bymacleojw 17 hours 38 minutes ago
  •  
sipla

You can use google to search for other answers

Custom Search

More Threads

• MOSS 2007 Blank Chart Image
• how to calculate average value of rang data
• How Can I get a series's color
• using count formula to group data in bar chart
• Avoid flickering
• error generated in using WinSamples with databinding to csv file
• Financial Formula
• HOW TO ADD THE RADOR CHART AND HOW TO ENTER THE DATA IN THE RADOR CHART
• How to post back hidden value
• DataManipulator.InsertEmptyPoints Does it work?