Page 1 of 1

Suppress 0 labels in a bar chart

Posted: Fri Oct 04, 2013 3:04 pm
by jsc
I just pasted a 1-D list of dates representing a failed part's build week into a blank window in DPlot. A date for every failed part. Then I asked DPlot to do a histogram with a 7 day interval. I got a bar chart and it looks correct, properly spread out over 3 years of production. But I would like to label the bars that are >0 but not label the "0's". Is there some option or trick (that I can't remember!) that I'm missing to turn off the 0's?

I did just tried using "operate on Y" and using a formula like "if(Y<1,-10,Y)". Then I set the extents from 0 to the positive Y limit. The "0's" were gone. Guess that will work for now.

Posted: Fri Oct 04, 2013 3:58 pm
by DPlotAdmin
There's no way to turn those labels off. But since you don't seem to mind editing the Y values I'd guess you wouldn't mind just getting rid of them, too. See "Clip Y" on the Edit menu.

Posted: Sat Oct 05, 2013 9:01 am
by jsc
I was thinking of doing that, and after I did, I got a bar chart that I don't quite know what's going on. Aside from my inability to fully comprehend the bar width and group width relationship, the bars on the right side of the plot aren't showing where I think they should show. I'll send an email with the screen shot.

Posted: Sat Oct 05, 2013 9:18 am
by DPlotAdmin
You should have received my e-mail reply by now, but just in case:

The 100% bar width is determined by the difference in X between the first two points. If you want a smaller width, insert a Y=0 value after the first point at whatever bar width you want.

The right side of your plot is correct - it's just that you have the bar width set to 75% and the bar is centered between the given X and that X plus the 100% bar width - in your case almost 3 months.