Search code examples
c#teechart

how to change default values of axis to user values


I have created multiple Y-axis in chart and individual scales for each axis by default. Now if user(i) wants to change those default values. I have created one form with textbox for entering scale min and max values. I have attached an image please have a loot at the image. enter image description here

now i want to get that text box value and assign to min and max scale of each axis. Can anyone have the idea how to do it . please help me.


Solution

  • You can modify axis scales using SetMinMax method, for example:

      tChart1.Axes.Custom[0].SetMinMax(min, max);
    

    For more information about axis settins please read tutorial 4. Tutorials can be found at TeeChart's program group. For multiple custom axis you may be interested in reading this question.