User (Legacy) Posted March 17, 2003 Report Share Posted March 17, 2003 I'm currently using ChartFX IE 2000 on our IIS webserver. I have a chart that has a list of stages in a process as the X axis data and a number value for the Y axis. I need the X axis to be split up into several categories of stages, so I used Annotation line objects to create a line at certain stages. Therefore, as a simple example, the X axis would look like the following: | Stage1 Stage2 Stage3 | Stage4 Stage5 Stage6 | Stage7 Stage8 Stage9 | I also use text box annotation objects to add more information to each one of the stage categories that are placed underneath the stage names and between the lines that separate the stage categories. This has worked Ok in a way. I use the following code to position the objects. For the stage category lines, I use: Category.Attach 1,"5,-90" where Category is the line annotation object. I am wanting the object to be attached to the 5th stage, and I have to use -90 so that the lines will appear below the x-axis. The line object is set with a height of 143 in order to get the line to take up the room between the x-axis and the top of the legend box at the bottom of the graph. This in and of itself is strange because the numbers don't add up. It seems that the line would be drawn from the -90 value to 143 pixels below that, but it isn't. This sets the line to start at the x-axis and go down to the legend box. I use the same method for the text objects that are centered between these lines, again attached to a certain stage. My problem occurs when either you zoom in on the graph, when you try to print the graph, or you resize the graph (not dynamically, but from the server side before the graph is drawn). The objects are no longer really attached to the right spot. The lines and text boxes move vertically. If I understand the attach method correctly, the objects are supposed to remain attached to the values that I assigned them to, no matter if the user zooms, scrolls, or prints. But this is not the case. Any suggestions on how to set these objects permanently to a certain stage value so that they will always appear in the same place?? I'm sorry I cannot give a good code example because the information presented by the graph is proprietary. I appreciate any insight on this problem. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.