Problem with TPointSeries and Xaxis
Posted: Wed Jun 04, 2014 2:54 pm
Hi
I am trying to create a Tchart at runtime and connect a set of TFastline series and TpointSeries to it. I want to set the X axis and Y axis to absolute values and plot both lines and points on the graph at various coordinates. This works fine. However
If I create TpointSeries and then use "AddXY(x,y,string)" where string is the label of the point this screws up the X axis scaling. If I use "AddXY(x,y)" this works. I want to keep the X axis scaling as set, but also be able to show a label at each point. I have attached a form showing the problem. I have set "bottomaxis.automatic:=false"
Secondly, when I show the point label I would like to be able to position it relative to the point coordinate as the label is a little close to the point shape
Thanks
Richard
I am trying to create a Tchart at runtime and connect a set of TFastline series and TpointSeries to it. I want to set the X axis and Y axis to absolute values and plot both lines and points on the graph at various coordinates. This works fine. However
If I create TpointSeries and then use "AddXY(x,y,string)" where string is the label of the point this screws up the X axis scaling. If I use "AddXY(x,y)" this works. I want to keep the X axis scaling as set, but also be able to show a label at each point. I have attached a form showing the problem. I have set "bottomaxis.automatic:=false"
Secondly, when I show the point label I would like to be able to position it relative to the point coordinate as the label is a little close to the point shape
Thanks
Richard