I’m using a 3D Cylinder Column Chart. These charts are then used in creating a PDF by way of the Infragistics.Documents.Report object. Is it possible to display data values that are zero (0) as nothing, or as a different color? i.e. I don’t want a flat, round, red disk displayed when the value is zero (0).
Unfortunately, there is no way to do that. Short of replacing zeroes with small fractions, I cannot think of any workaround.
Columns that have 0 values are not showing on the piechart 3d.
i need them visible.
I'm not quite sure what you're trying to do with your code.
e.Primitive is probably already visible and e.Primitive.Layer is a reference to the container that holds the primitive and should be visible as well.
Can you describe what you want to do and what chart type you're using?
Does not work for me.
I event tried the following.
protected
e)
{
)
//Double val = (Double)e.Primitive.Value;
// if (val == 0)
e.Primitive.Visible =
;
e.Primitive.Layer.Visible =
FillSceneGraph is the event to handle. Each side of your 3d bar is represented by a Path primitive and each path has a brush you can set. If, for example, the bar has a red brush, if you set different shades of red to each of the sides, you'll see a 3d effect.
List<Path> paths = new List<Path>();foreach (Primitive p in e.SceneGraph){ if (p is Path && p.Row >= 0 && p.Column >= 0) { paths.Add(p as Path); }}
int R = 0;int G = 0;int B = 0;
foreach (Path path in paths){ if (path.Row == 0 && path.Column == 0) { R += 30; path.Brush = new SolidBrush(Color.FromArgb(255, R, G, B)); }}