angel_ Well-Known Member Licensed User Longtime User Apr 22, 2020 #1 Although autoscale works very well, sometimes, I would like to force the 'y' axis to start from 0, is this possible? Attachments Screenshot_20200422-125506.jpg 67.2 KB · Views: 526
Although autoscale works very well, sometimes, I would like to force the 'y' axis to start from 0, is this possible?
klaus Expert Licensed User Longtime User Apr 22, 2020 #2 I would like to force the 'y' axis to start from 0, is this possible? Click to expand... For logarithmic scales it is mathematically IMPOSSIBLE. You can set the min value to 1, 0.1, 0.01, 0.001 etc but NOT to 0! What you can do is to set manual scales, for example: B4X: Copy LineChart1.YScaleLogaritmic = True LineChart1.AutomaticScale = False LineChart1.YMinValue = 0.1 LineChart1.YMaxValue = 500 While testing I found a bug with manual logarithmic scales, the xChart thread has been updated. Upvote 0
I would like to force the 'y' axis to start from 0, is this possible? Click to expand... For logarithmic scales it is mathematically IMPOSSIBLE. You can set the min value to 1, 0.1, 0.01, 0.001 etc but NOT to 0! What you can do is to set manual scales, for example: B4X: Copy LineChart1.YScaleLogaritmic = True LineChart1.AutomaticScale = False LineChart1.YMinValue = 0.1 LineChart1.YMaxValue = 500 While testing I found a bug with manual logarithmic scales, the xChart thread has been updated.
angel_ Well-Known Member Licensed User Longtime User Apr 22, 2020 #3 klaus said: For logarithmic scales it is mathematically IMPOSSIBLE. You can set the min value to 1, 0.1, 0.01, 0.001 etc but NOT to 0! Click to expand... It is only visual Upvote 0
klaus said: For logarithmic scales it is mathematically IMPOSSIBLE. You can set the min value to 1, 0.1, 0.01, 0.001 etc but NOT to 0! Click to expand... It is only visual
M Mahares Expert Licensed User Longtime User Apr 22, 2020 #4 klaus said: What you can do is to set manual scales, Click to expand... Can you perhaps do something like this based on a given filter or criteria: Code: Copy Dim v As Int =Rnd(.1, 10001) 'certain criteria If v < = 100 Then chart.AutomaticScale = True Else chart.YScaleMinValue =1 End If Upvote 0
klaus said: What you can do is to set manual scales, Click to expand... Can you perhaps do something like this based on a given filter or criteria: Code: Copy Dim v As Int =Rnd(.1, 10001) 'certain criteria If v < = 100 Then chart.AutomaticScale = True Else chart.YScaleMinValue =1 End If
klaus Expert Licensed User Longtime User Apr 22, 2020 #5 It is only visual Click to expand... A scale value of '0' has no meaning in logarithmic scales ! You will nowhere see a chart with logarithmic scales begin with '0', look in the internet ! Upvote 0
It is only visual Click to expand... A scale value of '0' has no meaning in logarithmic scales ! You will nowhere see a chart with logarithmic scales begin with '0', look in the internet !
angel_ Well-Known Member Licensed User Longtime User Apr 22, 2020 #6 klaus said: A scale value of '0' has no meaning in logarithmic scales ! You will nowhere see a chart with logarithmic scales begin with '0', look in the internet ! Click to expand... You are right Upvote 0
klaus said: A scale value of '0' has no meaning in logarithmic scales ! You will nowhere see a chart with logarithmic scales begin with '0', look in the internet ! Click to expand... You are right