A few (hopefully!) simple problems
Posted: Thu Aug 26, 2004 2:26 pm
I initially posted these questions as a reply to another thread, but figured they merited a thread of their own...
I tried using the Marks tip tool to display tool tips for my chart. Unfortunatly, since I have so many points, with so little space between, it's difficult to tell exactly which point the tooltip refers to. I'm wondering how difficult it would be to have it so when you left click on the chart, a vertical line across the whole chart denotes which point you've selected, and a display of the x and y values for that point appears.
I also have another problem. How do I stop the grid lines from the left axis from being drawn over top of my legend? I don't suppose there's some sort of chart1.LeftAxis.Grid.SendToBack function or something is there?
How do I detect which legend checkbox was clicked? Here's my problem. I have 4 series in my graph. I want the ability to activate/deactivate any number of them, so I can't use radio buttons. However, I don't want it to be possible to deactivate them all at once. Right now I have a simple one liner in the Chart1ClickLegend event that goes something like:
if not(Series1.Active) and not(Series2.Active) then Series1.Active := true;
...this however means that when you try to deactivate all of them, it jumps to displaying the first series, which I don't like too much.
Lastly, my bottom axis is a datetime axis, with data for each second. I have my labels at the min and max of the axis displaying hh:nn:ss. I want to have the vertical gridlines in my chart denote the start of each day. How would I do that? I can't seem to figure out how to draw grid lines at differing intervals from the labels. I was thinking of just creating a series per day, but don't like that solution, as I have no way of knowing how many days we're talking about. I read in one of the posts about manually drawing a line at particular points in the graph, but I'm not sure how to go about doing that.
You help is greatly appreciated. Let me know if you need any more information,
Andrew
I tried using the Marks tip tool to display tool tips for my chart. Unfortunatly, since I have so many points, with so little space between, it's difficult to tell exactly which point the tooltip refers to. I'm wondering how difficult it would be to have it so when you left click on the chart, a vertical line across the whole chart denotes which point you've selected, and a display of the x and y values for that point appears.
I also have another problem. How do I stop the grid lines from the left axis from being drawn over top of my legend? I don't suppose there's some sort of chart1.LeftAxis.Grid.SendToBack function or something is there?
How do I detect which legend checkbox was clicked? Here's my problem. I have 4 series in my graph. I want the ability to activate/deactivate any number of them, so I can't use radio buttons. However, I don't want it to be possible to deactivate them all at once. Right now I have a simple one liner in the Chart1ClickLegend event that goes something like:
if not(Series1.Active) and not(Series2.Active) then Series1.Active := true;
...this however means that when you try to deactivate all of them, it jumps to displaying the first series, which I don't like too much.
Lastly, my bottom axis is a datetime axis, with data for each second. I have my labels at the min and max of the axis displaying hh:nn:ss. I want to have the vertical gridlines in my chart denote the start of each day. How would I do that? I can't seem to figure out how to draw grid lines at differing intervals from the labels. I was thinking of just creating a series per day, but don't like that solution, as I have no way of knowing how many days we're talking about. I read in one of the posts about manually drawing a line at particular points in the graph, but I'm not sure how to go about doing that.
You help is greatly appreciated. Let me know if you need any more information,
Andrew