Skip to main content

Posts

Showing posts from May, 2016

JavaScript and JQuery Palettes...

I have been immersing myself in the world of d3js and more, specifically Plotly.js . This has required me to look at palettes, and to create some palettes - which I did with Paletton . I find it tedious, so I am creating some helpers, like the code below which displays a given list of palettes (each of which is simply an array of colors in your favorite format). <table id="Palette"> <tbody></tbody> </table> <script> var defaultColorsPalette = ["#ffd99a", "#225ea8", "#ffc09a", "#9dc4f4", "#ffbf58", "#ffdb58", "#257294", "#ff9658", "#61a1f3", "#ffa719", "#ffce19", "#ff6e19","#ffe99a", "#2a82f2", "#ff9e00", "#ffc900", "#ff5f00", "#036bf0" ]; //via colorweb2 var sequentialMultihueBlueYellowPalette = ["#ffffd9", "#edf8b1", "#c7e9b4",

Visualizations that teach...

I like visualizations that expand my ideas on what a good, interactive visualization is. I particularly like those that hide additional information in plain sight, like this one does . Caffeine, Vitamin D, Green Tea, Fish Oil and a whole lot of other supplements are examined in terms of their interest (popular or scientific) vs. their evidence in interactive, graphical form. At first glance, given the title and it’s apparent simplicity, this balloon graph doesn’t seem to offer much, but it ranks items by evidence and provides links to data, so I think it’s very interesting. http://www.informationisbeautiful.net/visualizations/snake-oil-supplements/