how do they do this?

They have: 140 posts

Joined: Nov 2003

can anybody tell me how this site does this - create unique chart graphics showing the current real estate market conditions in an area.

here is an example where a local realtor has indicated what is happening in their market:

http://realtytimes.com/rtmcrcond/Ohio~Cincinnati~marvinweisberger

every area is different so they need to be creating this with each post.
how do they do this.... from a programming perspective?

tks.

They have: 222 posts

Joined: Sep 1999

They probably have the rating stored in a database and then have a script that builds the markup based on the rating. So, if the rating were 2 if would make the color of the 2 box the highlighted color, otherwise it would make it the regular color.

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

The page uses tables with different background colors (see table cells outlined). It looks like that the cell width before the green cell and the cell width after the green cell depends on the rating.

Personally, I would prefer a dynamic image approach.

dk01's picture

He has: 516 posts

Joined: Mar 2002

I think it would be awesome if they had a little AJAX that would let you see when the ratings change. Real times ratings ftw.

They have: 8 posts

Joined: Aug 2007

You could do that using the gd library in php5.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.