MSChart not displaying 0 in Y-axis
Posted on 2002-03-07
I have an MSChart (mschrt20.ocx), which happens to be a Line but the problem also seems to occur for Bar/Pictograph, Area, Step and Combination. If the Y-axis, or second Y-axis, scale is -1 to 1, with 10 divisions, then the middle value shown on the Y-axis is 5.55112e-017, rather than 0. In fact, this will occur for similar ranges up to -5 to 5, at which point 0 is shown as the middle value. In one project this anomaly wouldn't show up the first time the chart was shown, but would on subsequent showings. In a project just consisting of the chart on a single form, the anomaly showed up right away.
My question is, how can I use this control to have a Y scale of -1 to 1, with 10 divisions and still have a 0 as the middle value? (I tried to use mschart.ocx, but VB said I didn't have a license to use it, but that's another problem.)