New TAChart tutorial on UserDefinedChartSource, logarithmic axis and fitting lazarus / 55-TAChart ---------------------------------------------------------------------- wp · 2012-08-11 16:26 Here is another tutorial which covers how to use a UserDefinedChartSource, how to create a logarithmic axisand how to fit an equation to data. http://wiki.lazarus.freepascal.org/TAChart_tutorial:_UserDefinedChartS ource,_Logarithmic_Axis,_Fitting EDIT The tutorial has been renamed a few times. The current version is at h ttp://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ListChartSource,_L ogarithmic_Axis,_Fitting ---------------------------------------------------------------------- Ask · 2012-08-11 18:50 Excellent work. I have a few questions and suggestions: 1) I think we should not impose a linear order of tutorials, but rather a "prerequisite graph". So perhaps first sentence should be rewritten to something like "This tutorial supposes that you are familiar with the topics covered in Getting Started". 2) The combination of topics you selected is nice from the pedagogical POV, but I am slightly worried about the size of tutorial -- can it be too much to swallow at once? Maybe split user-defined source material into a separate tutorial, and just use listsource in this one. Note that list source now has grid-based editor for DataPoints property, so it should be very easy to explain. I am not sure about this -- just a suggestion. 3) There should be links from tutorial to the documentation. There can be two (not necessarily mutually exclusive) styles here: a singe general reference or direct references from the relevant terms (e.g. "axis coordinates"). Which do you think is preferable? 4) When discussing axis marks, you skip topics of chart zooming and resizing, which are primary basis for Intervals property. This is a good decision to simplify the tutorial, but perhaps some short sentence is justified? For example, it seems to me that "increase the BottomAxis.Intervals.MaxLength to 70" advice is not optimal, because depending on the actual chart size and zoom factor marks can be still spaced fairly close -- it is advisable to also increase MinLength. 5) TFitSeries has GetFitEquationString function -- maybe it should be advertised in the tutorial? ---------------------------------------------------------------------- wp · 2012-08-11 20:24 Good suggestions -- I'll modify the text accordingly. BTW, do you know a software which allows to write and test a wiki offline? I do not want to wreck the current version. Or can I delete the current version when the new one is finished? I did not find a way how to delete files after they were uploaded. Originally, I had thought about splitting the tutorial in three parts, UserDefinedChartSource, log axis, fitting, but had dropped this idea to keep things together. Maybe I should consider it again? ---------------------------------------------------------------------- Ask · 2012-08-11 21:22 QuoteI do not want to wreck the current version. Or can I delete the current version when the new one is finished?Wiki has a history, so I think there is nothing to fear. I suggest the following plan: 1) Create new tutorial "User-defined source", move corresponding material there 2) Rename original tutorial (I can do it myself if you prefer) This way, there is no need to delete anything. QuoteOriginally, I had thought about splitting the tutorial in three partsThere is a balance here -- certainly the fact that tutorial results in a semi-useful chart is a nice feature. I think two parts will be ok. ---------------------------------------------------------------------- wp · 2012-08-12 22:51 I just uploaded a new tutorial on UserDefinedChartSource (see thread http://www.lazarus.freepascal.org/index.php/topic,17842.0.html) and will update the LogAxis tutorial shortly. Without the log axis the data in the old tutorial are a bit uninteresting. Therefore I selected demographic data which allow to introduce the area series by the way. I am planning a second part using the same data in which I want to draw a population pyramid - this is a good introduction to transformations in a less obious way as the LogAxisTransform. BTW: What do you think about adding the sources of tutorial projects to the demo folder of the TAChart component? I could avoid adding the sources to the wiki text, and I could provide "real" data files without having to give instructions in the tutorial on how to get them from the internet.