r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

Graham
23-Sep-2005
[2729x2]
I wonder what the implementation approach to the patient management 
dashboard would be.
create some type of self graphing widget perhaps
Henrik
23-Sep-2005
[2731]
a face with a rate that grabs some data from an array
Graham
23-Sep-2005
[2732x2]
I don't think they're intended to be in real time.
Just more to provide a snapshot over time.
Henrik
23-Sep-2005
[2734x2]
still, wouldn't it be a good approach? the rate could be once per 
hour, plus on demand updating
this way, if you really want realtime, it's a matter of adjusting 
the rate
Graham
23-Sep-2005
[2736x2]
I suspect it is unnecessary for the task at hand, and would complicate 
the task somewhat.
still, it would be a good demo :)
Henrik
23-Sep-2005
[2738]
I'd love to see a demo of an overview of graphs updated in realtime 
from any source. any.
Graham
23-Sep-2005
[2739]
of any graph in any language or just Rebol?
Henrik
23-Sep-2005
[2740]
well for starters Rebol, but what if you could mix data like that 
and then just display it, no matter if it's CVS, rebol blocks or 
something measured off the serial port from a physical device.
Graham
23-Sep-2005
[2741]
sounds like you want to make a rebol oscilloscope
Geomol
23-Sep-2005
[2742]
Is the stock-market data available somewhere online?
Henrik
23-Sep-2005
[2743x2]
actually I think the hardest part would be to display a pretty graph 
:-) retrieving data could be done from within the graph face
I don't know about raw stock data...
Geomol
23-Sep-2005
[2745]
Temperature data is also good for that.
Graham
23-Sep-2005
[2746]
stock market data is available from yahoo I believe, but delayed 
by 15 mins or something
Henrik
23-Sep-2005
[2747]
graham: an oscilloscope could be a bit too intensive :-)
Geomol
23-Sep-2005
[2748]
Or sea-level (changes with tide and weather).
Graham
23-Sep-2005
[2749]
or Canvas release rates
Geomol
23-Sep-2005
[2750x3]
Wind direction.
lol
release rates contra size in kB
Graham
23-Sep-2005
[2753]
I guess I'd better find some docs on the draw dialect and see how 
easily this could be done.
Henrik
23-Sep-2005
[2754]
It could be nice to have general graphing tools for Rebol like RRDTool 
which is a very powerful (but complex) graphing package for Linux
Geomol
23-Sep-2005
[2755x2]
A start:
view layout [box white effect [draw [pen black line 0x100 10x80 20x85 
30x50 40x60 50x65 60x55 70x40 80x50 90x20]]]
Graham
23-Sep-2005
[2757]
or gnuplot
Geomol
23-Sep-2005
[2758x2]
To change data, you could do:
clear next find face/effect/draw 'line
append face/effect/draw data-block
show face
Graham
23-Sep-2005
[2760x2]
what about scatter plots ?
would be as easy to update ?
Geomol
23-Sep-2005
[2762]
Is that points?
Graham
23-Sep-2005
[2763]
yes.
Geomol
23-Sep-2005
[2764x3]
view layout [box white effect [draw [pen none fill-pen black circle 
10x80 4 circle 20x85 4 circle 30x50 4 circle 40x60 4 circle 50x65 
4 circle 60x55 4 circle 70x40 4 circle 80x50 4 circle 90x20 4]]]
Update is almost as easy, just put circle in front and radius (4) 
behind the coords.
Picking data online and show a graph could maybe be an one-liner. 
:-)
Only with REBOL! (TM)
Graham
23-Sep-2005
[2767]
do points have to be done with circles ?
Geomol
23-Sep-2005
[2768]
I guess so. Isn't a dot on a monitor a very small circle? Just change 
radius to 1 or 0.5 or something.
Graham
23-Sep-2005
[2769]
a dot on my monitor is a little square :)
Geomol
23-Sep-2005
[2770x2]
:-) A one-pixel dot:
view layout [box white effect [draw [translate 0.5 0.5 anti-alias 
off pen none fill-pen black circle 50x50 0.5]]]
Graham
23-Sep-2005
[2772x3]
cool.
exactly one pixel too.
Looking carefully at my laptop screen, it's a grid of square pixels.
Geomol
23-Sep-2005
[2775]
The translate move the center of the circle into the middle of a 
pixel. Radius of 0.5 then means, the circle won't go into neighbour 
pixels.
Graham
23-Sep-2005
[2776]
Perhaps you can incorporate a graphing module in Canvas :)
Geomol
23-Sep-2005
[2777x2]
Without the translate, 4 pixels would be black.
Graham, certainly! :-)