blockbuilder icon indicating copy to clipboard operation
blockbuilder copied to clipboard

randomly load a simple example on home page

Open enjalot opened this issue 9 years ago • 6 comments

When a user comes to the blockbuilder.org homepage they could be greeted with a real d3 example randomly chosen from a preselected list that we curate.

lets brainstorm those examples in this issue.

enjalot avatar Jun 28 '16 19:06 enjalot

The examples should be:

  • very well done (mbostock grade)
  • short
  • easy to understand
  • demonstrating one (only one) point of code or technique
  • visually nice
  • have some sort of documentation
  • using d3 v4 not v3

Fil avatar Jun 28 '16 19:06 Fil

  • using best-practices

Joshfindit avatar Jun 28 '16 19:06 Joshfindit

We can have:

  • the general update pattern https://bl.ocks.org/mbostock/a8a5baa4c4a470cda598
  • transitions
  • d3.geo (lots!!) http://bl.ocks.org/Fil/48734366b4d64aa1b26bd256ee8f7c5e
  • customized forces
  • voronoi
  • colors

Fil avatar Jun 28 '16 19:06 Fil

I'd also like them to be single file / just the html if possible. This way users can just delete all (or most) of the example and get going.

enjalot avatar Jun 28 '16 20:06 enjalot

Not sure about the "random" part; I'd like to be able to find the same block that caught my attention when I arrived. So maybe an example of the day with links to previous examples.

Fil avatar Jun 28 '16 20:06 Fil

"Block of the day" would solve above issue (i guess, then user could fork the block within 1 day range), but i would also include a page where the best blocks for learning were listed.

This could be a good starter point: http://bl.ocks.org/enjalot/raw/211bd42857358a60a936/

Having that list, it would be reasonable to favor those blocks on search page.

pavelloz avatar Jul 15 '16 10:07 pavelloz