Build a simple Javascript 3D cube function

Proyek ini menerima 7 penawaran dari para freelancer berbakat dengan harga penawaran rata-rata £200 GBP.

Dapatkan penawaran gratis untuk proyek seperti ini
Anggaran Proyek
£20 - £250 GBP
Total Penawaran
Deskripsi Proyek

I require a simple function that will take an X,Y,Z grid of JSON data and represent it in a 3D cuboid

The 3D model should be able to be rotated easily and look very similar to this:-

[url removed, login to view]

Other that instead of bars, there is a single cube for each x/y/z position.

i.e. If I provided the following data, I should see a 3w x 3l x 1h cuboid with top-left on a red cube showing "fred", top-right showing "fred" on orange and middle-left showing "bert" on a blue cube.

It should allow 'n' entries on x/y/z and assume and empty cube (with transparent colour) if data isn't present for that individual cell.

It must be in pure Javascript/Jquery, and not require massive external libraries (like [url removed, login to view]), but can use/leverage [url removed, login to view] as we are already using that.

x y z label color


1 1 1 fred red

1 2 1 - -

1 3 1 fred orange

2 1 1 bert blue

2 2 1 - -

2 3 1 - -

3 1 1 - -

3 2 1 - -

3 3 1 - -

Keahlian yang Diperlukan

Ingin menghasilkan uang?

  • Atur anggaran Anda dan jangka waktunya
  • Uraikan proposal Anda
  • Dapatkan bayaran atas pekerjaan Anda

Pekerjakan para freelancer yang juga menawar di proyek ini

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online