How to make a simple graph? [SOLVED] lazarus / 55-TAChart ---------------------------------------------------------------------- LeafRaider · 2013-03-19 18:00 Okay, I've followed the tutorials on the wiki and I still can't work out how to create a very simple graph! What I want to be able to create is a set of axis that are simple 0-10 for both x and y and then be able to program in a set of 10 co-ordinates and display them as a single line on the screen. Now I'm sorry if I am incapable of using a search engine or something and this is easy to find but I cannot find something as basic as this. Thanks in advance.  EDIT: Now solved thankyou wp! ---------------------------------------------------------------------- Chronos · 2013-03-19 18:46 Check tutorials on wiki http://wiki.freepascal.org/Category:TAChart ---------------------------------------------------------------------- LeafRaider · 2013-03-19 19:27 Quote from: Chronos on March 19, 2013, 07:46:54 pmCheck tutorials on wiki http://wiki.freepascal.org/Category:TAChart I've looked through all of them again and have been unable to find a straight answer to it, now I may have missed something but all of the tutorials I have done are too complex or use methods that I can't understand well enough to adapt for what I need... ---------------------------------------------------------------------- wp · 2013-03-19 19:41 I guess you did not go through http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Getting_started - follow it step by step and you will see how to create a series. To restrict the axes limits to the range from 0 to 10 use the chart property Extent: in the object inspector, set Extent.XMax and Extent.YMax to 10 and set Extent.UseXMin, Extent.UseXMax, Extent.UseYMin and Extent.UseYMax to true. ---------------------------------------------------------------------- LeafRaider · 2013-03-19 19:52 Quote from: wp on March 19, 2013, 08:41:08 pmI guess you did not go through http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Getting_started - follow it step by step and you will see how to create a series. To restrict the axes limits to the range from 0 to 10 use the chart property Extent: in the object inspector, set Extent.XMax and Extent.YMax to 10 and set Extent.UseXMin, Extent.UseXMax, Extent.UseYMin and Extent.UseYMax to true. I did actually and did not find it particularly helpful in what I want. However the part you added to the end there may well have solved my problem if I play with it for a bit, thanks. ---------------------------------------------------------------------- wp · 2013-03-19 20:02 I fear I cannot help you then. I cannot imagine a simpler way to demonstrate the most fundamental usage of TAChart. You won't find a tutorial on the exact problem that you want to solve. But what is the problem to replace the dummy data of the functions used in the tutorial with your own data? If you don't know how to do that I'd recommend that you have a look at a basic Lazarus tutorial like http://wiki.lazarus.freepascal.org/Lazarus_Tutorial, and/or read a book on Pascal or Delphi. ---------------------------------------------------------------------- LeafRaider · 2013-03-19 20:13 Quote from: wp on March 19, 2013, 09:02:59 pmI fear I cannot help you then. I cannot imagine a simpler way to demonstrate the most fundamental usage of TAChart. You won't find a tutorial on the exact problem that you want to solve. But what is the problem to replace the dummy data of the functions used in the tutorial with your own data? If you don't know how to do that I'd recommend that you have a look at a basic Lazarus tutorial like http://wiki.lazarus.freepascal.org/Lazarus_Tutorial, and/or read a book on Pascal or Delphi. Then fear you are wrong, because you have in fact helped me and I have finally completed this very simple task that I was seemingly blind to. I managed to plot my 10 points. The only thing I need to know is how change the XMax etc. during run rather than being constant from the object inspector. Then I can finally link it to my Free Pascal program (I have little experience with Lazarus having only been taught Turbo Pascal in college hence my being stuck). Thankyou! ---------------------------------------------------------------------- wp · 2013-03-19 20:19 QuoteThe only thing I need to know is how change the XMax etc. during run rather than being constant from the object inspector. Of course you can set XMax etc also at run time once you know the data range. Or leave the Extent property alone, then the chart will do all the scaling automatically.