Chart display question
Posted: Tue Jan 23, 2007 8:05 pm
Hello,
I've taken over a project from another developer and I'm looking for a answer to a problem that we have had reported.
We have a simple distribution chart. Typical values on the left axis range from 0 to infinity. When the chart is displayed, using the scroll wheel on the mouse scrolls the chart upwards and downwards. The problem arises from scrolling the chart up. When this happens, the chart shows negative values and I cannot figure out how to make the chart not scroll pass 0.
I am using a standard TChart, programming in delphi 7. I've tried setting the LeftAxis.AutomaticMinimum to False and setting a minimum of zero. But that doesn't work. I suspect I can catch this behavior in the OnScroll event, but I have no idea what to test for.
Anyone? I would greatly appreciate the help. Thanks![/img]
I've taken over a project from another developer and I'm looking for a answer to a problem that we have had reported.
We have a simple distribution chart. Typical values on the left axis range from 0 to infinity. When the chart is displayed, using the scroll wheel on the mouse scrolls the chart upwards and downwards. The problem arises from scrolling the chart up. When this happens, the chart shows negative values and I cannot figure out how to make the chart not scroll pass 0.
I am using a standard TChart, programming in delphi 7. I've tried setting the LeftAxis.AutomaticMinimum to False and setting a minimum of zero. But that doesn't work. I suspect I can catch this behavior in the OnScroll event, but I have no idea what to test for.
Anyone? I would greatly appreciate the help. Thanks![/img]