Formatting Max and Min Values on a Line Graph
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
Hi Craig,
you think to complicated.
I only need this:
It is not beautiful with the black dot in the left corner but enough. With
1,50,0
2,100,
3,75,
I tell the Graph that the starting Point is 0.
you think to complicated.
I only need this:
It is not beautiful with the black dot in the left corner but enough. With
1,50,0
2,100,
3,75,
I tell the Graph that the starting Point is 0.
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Formatting Max and Min Values on a Line Graph
No, no.
I think too easy.
So please tell me how you actually make these graphs, since you were having trouble with the placement of your data points. Do you place them manually, and then draw the lines with a polyline? I still do not see how you were having trouble earlier, and now do not.
I make graphs all the time with LiveCode. It is not really intended to do that sort of thing, but can easily be persuaded. I have fooled LiveCode into thinking it is a CAD program, and create pretty good drawings with it.
Craig
I think too easy.
So please tell me how you actually make these graphs, since you were having trouble with the placement of your data points. Do you place them manually, and then draw the lines with a polyline? I still do not see how you were having trouble earlier, and now do not.
I make graphs all the time with LiveCode. It is not really intended to do that sort of thing, but can easily be persuaded. I have fooled LiveCode into thinking it is a CAD program, and create pretty good drawings with it.
Craig
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
Hi,
I am using the Line Graph Widget:
set the graphData of widget "Line Graph" to var_values
Content of var_values:
1,50,0
2,100,
3,75,
I am using the Line Graph Widget:
set the graphData of widget "Line Graph" to var_values
Content of var_values:
1,50,0
2,100,
3,75,
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Formatting Max and Min Values on a Line Graph
Hi Stefan,
If you have access to LC 10.0.0 dp 6 then you should check out the "Graph" widget.
It has wastly more options than the Linegraph widget.
Kind regards
Bernd
If you have access to LC 10.0.0 dp 6 then you should check out the "Graph" widget.
It has wastly more options than the Linegraph widget.
Kind regards
Bernd
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
Hey Bernd,
sure, but I am already on MacOS Sonoma beta and LC10.0.0 DP5 is not working with it :-/ But I can try with DP6 later, good idea.
Stefan
sure, but I am already on MacOS Sonoma beta and LC10.0.0 DP5 is not working with it :-/ But I can try with DP6 later, good idea.
Stefan
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Formatting Max and Min Values on a Line Graph
Ah. Yet another example of my thinking everyone still uses LiveCode.
Oftentimes I find out well into a discussion that the entire issue was all about mobile. Now I can add as well that the entire discussion was all about widgets.
I feel like a caveman, but am smug about it.
Craig
Oftentimes I find out well into a discussion that the entire issue was all about mobile. Now I can add as well that the entire discussion was all about widgets.
I feel like a caveman, but am smug about it.
Craig
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Formatting Max and Min Values on a Line Graph
Hi Stefan,
I am sorry, of course I meant Chart widget.
with this icon.
Kind regards
Bernd
I am sorry, of course I meant Chart widget.
with this icon.
Kind regards
Bernd
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
Hi Bernd,
the Graph is also not working proper :-/
Button Example:
In LiveCode IDE it is working - In iPhone Simulator not...
on mouseup
put "1,200" & CR & "2,100" & CR &"3,15" into p1
set the tsvdata of widget "Chart_Werte" to p1
end mouseup
Any Ideas why?
Stefan
the Graph is also not working proper :-/
Button Example:
In LiveCode IDE it is working - In iPhone Simulator not...
on mouseup
put "1,200" & CR & "2,100" & CR &"3,15" into p1
set the tsvdata of widget "Chart_Werte" to p1
end mouseup
Any Ideas why?
Stefan
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
seems that the datas are still there, a refresh is required. If I try to open another card and go back it is working... But this could not be the solution. Any Ideas how to "reload" the widget after it set the data in there?
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Formatting Max and Min Values on a Line Graph
Hi Stefan,
I do not do mobile.
Could you try after setting the Graph at the end:
usually this forces the screen redraw.
Kind regards
Bernd
I do not do mobile.
Could you try after setting the Graph at the end:
Code: Select all
go this card
Kind regards
Bernd
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
Does not work...
The Datas are there. If I open another Card it is refreshed. But I have no chance to refresh while I am on the card itself. It is only on mobile device. If I do the same in the IDE (set the csvdata ...) it is prompt refreshed
My workaround is not fine... I created another blank card, go to there and then back
The Datas are there. If I open another Card it is refreshed. But I have no chance to refresh while I am on the card itself. It is only on mobile device. If I do the same in the IDE (set the csvdata ...) it is prompt refreshed
My workaround is not fine... I created another blank card, go to there and then back
Last edited by ace16vitamine on Thu Sep 07, 2023 10:21 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Formatting Max and Min Values on a Line Graph
Hi Stefan,
one last try:
send "go this card" to me in 50 milliseconds
Otherwise I am out of ideas and maybe a bug report is needed.
Kind regards
Bernd
one last try:
send "go this card" to me in 50 milliseconds
Otherwise I am out of ideas and maybe a bug report is needed.
Kind regards
Bernd
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: Formatting Max and Min Values on a Line Graph
No Chance, does not work.
https://quality.livecode.com/show_bug.cgi?id=24331
Have an nice evening
Stefan
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Formatting Max and Min Values on a Line Graph
Try this:
That usually forces a redraw for me. I stole it from Panos.
Code: Select all
set the backcolor of this card to the backcolor of this card
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com