LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
currently I am working with Lihe Graphs and I remember that I already found a solution for my problem years ago - But I forgot how I solved this.
Let me explain:
I have a simple Line Graph with some values by Day in the range between 50 and 100. The Problem: The LineGraph ist starting with 50 because this is the minimum value.
Example:
1,50
2,100
3,75
My goal is to set the minimum value shown to 0 and not to 50 in the graph, means that the line is not on the bottom of the LineGraph.
How are you generating the X and Y values? In other words, what is the story with the ordered pairs as you wrote them? I see no obvious arithmetic relationship, only that the first value is 50, the second is 100 and the third is 75.
This problem should be trivial, if we knew the method.
Rereading, is it that the first value is the day number, and the second is some value associated with that day?
OK, then what is the requirement for loading that second value? In other words, is that value simply entered, or is there some method to generate that value?
It sounds as if you would be better served with a bar graph instead of a line graph. A bar graph shows values associated with some arbitrary parameter, such as a day number and the temperature that day.
A line graph usually shows a relationship between two variables, known as an "independent variable" and a "dependent variable", and shows the "trend" as the independent variable changes. For example a series of numbers and their squares.
You can force either to do the job, but this goes back to the original question, what are you trying to display?
I did not get the fact that your "50" was sitting on the abscissa.
You must currently use item 2 of the loc of the point you want to place that small "X" graphic, or some other means of setting the vertical location of that point. And you use that point to then draw the line graph.
I do not know your code, but isn't there a single line in it where you might (pseudo):
I do a lot of rereading of your posts and have to come back. I apologize, though it does help keep me ahead of Richmond in the post race.
The most recent graph shows the "75" to be lower than the "50". This is assuming that the three test values are still '50,100,75". Was that just an example of how the graph works, and not some other plotting factor I do not know about?
I want a Line Graph where the Y Start and End is preformatted and not dynamically calculated from the values
I do not understand.
If you get a series of test results, however you "label" each of them them, how do you intend to locate the points on the graph? By hand? It is simple to create a gadget that does this for you. so that all you need do is enter the test values, and the graph pops up, complete. I believe, from a previous post, that this is exactly what you wish for.
If you want I will make it for you. For me this is just for fun.