#Interactable Graph/Chart

1 messages · Page 1 of 1 (latest)

eternal widget
#

I have a stock game I wnat a graph that can connect to real prices i have eveyrthing just not in graph form and how do i make so i can use mouse to like move it left and right and zoom just need advice on what to even start with.

shut stream
#

scrolling frame?

#

make it scroll horizontal maybe

eternal widget
#

how would i be able to like graph it tho with like candlesticks??? would i just change the sizing of a frame like and make it in the script??

#

taking data from api

#

my game is complete but just need this final part

spiral cryptBOT
#

studio** You are now Level 5! **studio

shut stream
#

uh

#

how do the candlesticks work?

#

are they all the same or

eternal widget
#

uhh

#

its like

#

a type of graphinc

#

its like thing of it as vertical candlesticks rectangles basically and its red or green depending if its going up or down and it can be super long or short depending on how much it moves or changes in a certain time frame

shut stream
#

uh

#

set the anchor point to 0.5,0 for the candlestick and scale it from there

eternal widget
#

one side is the price at the start of a 5m timer and the other is the price at the end of the 5m timer

shut stream
#

hold on

eternal widget
#

been tryna do this for a year

shut stream
#

i guess yeah

eternal widget
#

that that good of a scripter tho

shut stream
#

you would like

#

put them on a center line at first and then change it

#

oh but then

#

you'd also need to move up and down

eternal widget
#

what if i would want it to be able to move the graph with mouse tho not just scrolling horizontally. because if price shoots up i will run out of space in the vertical axis.

shut stream
#

yeah uh

stoic relic
shut stream
#

you need to manipulate like a viewframe

#

like there's a viewport and then there's the bigger scene behind it

#

and you move the viewframe with your mouse

eternal widget
#

so its very

#

complex

shut stream
#

eh not really

eternal widget
#

oh really?

#

would want it like in the top right quadrant

#

is it possible to do it when ur like connecting it to a real api

#

for real live prices

shut stream
#

yeah

#

idk how it works in the market but

#

i guess you could draw the candles by the price

#

basicly change the scale by 1 up if the price shoots up by 100%

#

and change the scale by 1 down if the price shoots down by 100%

#

make the start point when you started trading

#

uh i guess you'd get the value of the real market by like a http call to a api

#

get the price

#

and start drawing the candles

#

once the player starts trading

#

or

eternal widget
shut stream
#

im guessing you want smth like this yeah

#

you can move up and down and look for the candles n yh

eternal widget
#

more like

#

the entiire screen there

#

is the stock thing

#

and u can move around the whole thing

#

the inside

shut stream
#

well you can zoom in and out

#

becuase you have like a max width

#

for it

eternal widget
#

it just gets closer to the stocks ands tuff

#

scale everything down

shut stream
#

well yeah

#

you gotta implement that

eternal widget
#

similar to this

verbal vortex
#

everyone sybau