d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Alright My Brain Is Fugged > Need Assistance
Add Reply New Topic New Poll
Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 15 2015 03:08am
So I'm trying to extrapolate how I would do this. Say I want to visualize selling a million stock in a hypothetical company; but the order would only be filled once all 1 million shares are filled.

I'd want to visualize the investments as they rolled in using some type of program (ie: someone buys 5 shares - 5/1,000,000 blocks in the image are filled in).

Trying to figure out what would be a suitable program to write something like this in (I'd probably have to pay someone to do it, but I'd like to know what I'm talking about a bit more).


Also check my cube math its fukin with me - pic related..


Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 15 2015 07:34am
i'm not clear why you want a 3D cube? it's not like you can see the inside of it. use something 2D. just use a progess bar?

your pictures just confuse me. your green square has 100 little squares. how can the big square be 1 MW but each little square is 1/100 MW of a cube? that's not a 3D cube, it's a 2D square. it looks like you just want a 1000 x 1000 square, but you fill in little tiles at a time instead of going all the way across?

This post was edited by carteblanche on Aug 15 2015 07:38am
Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 15 2015 11:16am
Quote (carteblanche @ Aug 15 2015 09:34am)
i'm not clear why you want a 3D cube? it's not like you can see the inside of it. use something 2D. just use a progess bar?

your pictures just confuse me. your green square has 100 little squares. how can the big square be 1 MW but each little square is 1/100 MW of a cube? that's not a 3D cube, it's a 2D square. it looks like you just want a 1000 x 1000 square, but you fill in little tiles at a time instead of going all the way across?



I want a 2d square grid; not a cube (and where I said the colored 'cube' I meant colored 'square' - I need the squares to visibly go down to 1/1,000,000 shares in some way that makes sense -- I was trying to zoom in on each square and show it went down to the 1/1,000,000 Square (each color is a zoom in on the highlighted square to break it down further).

Thanks even for catching that I said 'cube' when I should have said 'square' - I'll try to explain what I'm trying to do below.

---
The Green Square represents 1 whole unit. --- This would be equivalent to all 1 million shares (1,000,000/1,000,000 shares).
The Blue Square represents 1/100 the entire green square (1/100 overall or 10,000/1,000,000 shares).
The Purple Square represents 1/100 the entire green square (1/10,000 overall or 1/,000,000 shares).


Essentially I'd want to create a square grid with 1,000,000 small squares within it. Each smaller square would represent a 'share' when doing something like crowdfunding so the entire group could see the progress of the order being filled/shares being purchased as they are purchased.



Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 15 2015 01:23pm
FG for advice on how it might be coded, and ideas on how it could be done more cleanly/differently.

Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 15 2015 01:56pm
is it just me or did you forget to describe what algorithm you want to use to fill in the tiles? not sure what tips you need for programming. it looks straight forward. can very easily be represented with a 2D array. or probably don't even need that since you can just number the tiles, and based on how many are sold, you know which tiles are on or off using the algorithm you didnt give us.

personally i think it's very limiting to use square tiles in square tiles in square tiles. because that means you can only have a perfect square number of shares. if i'm a shareholder and i want to see stock availability, i'd tell them this is a dumb representation for a linear proportion and i'd ask for a progress bar or pie graph or just a percentage. but idk what your goals are in using this.

on the other hand, if each tile represents something different, then maybe a big square board is ok. you know, like jeopardy, so you can tell at a glance what is or isn't available.

This post was edited by carteblanche on Aug 15 2015 02:09pm
Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 15 2015 03:56pm
Quote (carteblanche @ Aug 15 2015 03:56pm)
is it just me or did you forget to describe what algorithm you want to use to fill in the tiles? not sure what tips you need for programming. it looks straight forward. can very easily be represented with a 2D array. or probably don't even need that since you can just number the tiles, and based on how many are sold, you know which tiles are on or off using the algorithm you didnt give us.

personally i think it's very limiting to use square tiles in square tiles in square tiles. because that means you can only have a perfect square number of shares. if i'm a shareholder and i want to see stock availability, i'd tell them this is a dumb representation for a linear proportion and i'd ask for a progress bar or pie graph or just a percentage. but idk what your goals are in using this.

on the other hand, if each tile represents something different, then maybe a big square board is ok. you know, like jeopardy, so you can tell at a glance what is or isn't available.



No idea on the algorithm; just had the rough concept in my head trying to flush the idea out.

My goal is like you said - to show progress of a million 'shares' being filled where shares are purchased in a crowdfunding fashion. So as shares are purchased the block would fill up.

You think a simple progress bar would be better? I sort of think the same as fractional shares would be difficult with this model.

Working on my wordpress site explaining the overall idea; this is just one tiny piece -- I'll send you the link when its a little more complete; would love to talk in skype/TS or something with you if you'd give honest intelligent feedback.

e: Thanks again for the insight.

This post was edited by Blankey on Aug 15 2015 03:56pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 15 2015 04:51pm
Quote (Blankey @ Aug 15 2015 05:56pm)
You think a simple progress bar would be better? I sort of think the same as fractional shares would be difficult with this model.

if you think about it, your "idea" is just a special case of a progress bar. both ideas are just a collection of "tiles". a progress bar is 1 x n collection of tiles, whereas a square is sqrt(n) * sqrt(n) collection of tiles, where n is the smallest changeable unit. you can still apply your "zoom in" idea to a progress bar. you can zoom into a single tile and see fractions of that tile. changing it into a square only adds confusion because you're adding onto it in two dimensions (ex: growing up and growing left) instead of adding onto it in one dimension (growing right).

using a 3x3 tile for example, we can show a few ways the square gets filled:
Code
1 2 3
4 5 6
7 8 9


7 8 9
4 5 6
1 2 3

9 8 7
6 5 4
3 2 1


and the list goes on. how is this more intuitive than a 1 dimension 1x9 tile? consider also that your square needs to be filled before the square next to it gets filled, which leads to more confusion
Code
1 2 3 4 5 6 7 8 9


Regardless, that's just my opinion and what i'd like to see. i encourage you to hire an artist (or do it yourself) to draw up a few examples of how your design would look with various values. you can create a gif showing it increase from 5 shares to 7.9 to 150 to 1000 to 124,246.29, etc. if you like it, hire a developer to do it. you can always change it later.

Quote
Working on my wordpress site explaining the overall idea; this is just one tiny piece -- I'll send you the link when its a little more complete; would love to talk in skype/TS or something with you if you'd give honest intelligent feedback.


Not interested.

This post was edited by carteblanche on Aug 15 2015 05:00pm
Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 22 2015 01:56pm
I updated the image a bit to try to explain it better.

Still figuring on how to best do fractional shares (as it stands $2 would be the minimum purchase amount in a 'share' unless I broke it down one more iteration in which case it would be reduced to $.02 as the smallest purchasable denomination.



Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Aug 26 2015 02:47pm
Bump; hoping for more insight/to see if the second image makes any more sense
Member
Posts: 27,942
Joined: Nov 6 2006
Gold: 55,141.00
Sep 2 2015 12:45pm
Anyone here know of any good crowdfunding visualization tools?

Thanks again carteblanche for the advice/input.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll