[SOLVED] TChart range lazarus / 55-TAChart ---------------------------------------------------------------------- engine32 · 2022-11-16 19:07 Hi there,   I am using TChart with two data series and two vertical axes (see picture).   I would like to have different ranges for the two vertical axes, but I am not successful. I looks like there is some sort of auto range issue.   On the left one I set Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     frmMain.chart.LeftAxis.Range.Max := f64S1RangeMax;    frmMain.chart.LeftAxis.Marks.Range.Max := f64S1RangeMax; where f64S1RangeMax happen to be 250.   On the right one I set: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     frmMain.chart.AxisList.Axes[2].Range.Max := 2048;    frmMain.chart.AxisList.Axes[2].Marks.Range.Max := 2048;    Because data on the right one is about 400, which is greater than the limit on the left side, the left axis gets the way it is in the picture.   Thank you. ---------------------------------------------------------------------- wp · 2022-11-16 21:14 For two y axes with independent scales you need two AutoscaleAxistransformations (one for each axis); and for each series you must specify in the AxisIndexY property the index of the axis to be used for its vertical axis. Read the tutorial in https://wiki.lazar us.freepascal.org/TAChart_Tutorial:_Dual_y_axis,_Legend. I am attaching a small sample project with two independent axes. Study the changes in the object inspector since there is no code needed to achieve this. (OK - I could rewrite it with run-time code, but I am afraid that this is more confusing...) ---------------------------------------------------------------------- engine32 · 2022-11-16 23:25 It works nicely, Thank you.