JohnCoene / javascript-for-r-comments

1 stars 0 forks source link

Title of Section II "Data Visualization" and 1.2.2 #32

Open timelyportfolio opened 3 years ago

timelyportfolio commented 3 years ago

I think most equate htmlwidgets with "Data Visualization" since nearly all htmlwidgets are visualizations. "Data Visualization" as a title is more engaging than "Widget Construction" :) but is there a title that more directly expresses the content and doesn't limit htmlwidgets to data visualization? I couldn't think of any so feel free to close and ignore.

1.2.2 also implies the only purpose of htmlwidgets is data visualization, while htmlwidgets can do more than visualize.

timelyportfolio commented 3 years ago

I just realized though that you do make this point in the preface.

"A sizeable part of the book concerns data visualisation, it plunges into creating interactive outputs with the htmlwidgets package. This opens with a brief overview of how it works and libraries that make great candidates to integrate with the htmlwidgets package. Then a first, admittedly unimpressive, widget is built to look under the hood and observe the inner-workings of such outputs in order to grasp a better understanding of how htmlwidgets work. Next, we tackle a more substantial library that allows drawing arcs between countries on a 3D globe. Then, to demonstrate that such packages are not limited to visualisation and more broadly applies to interactive outputs, a second package is built, one that allows to mimic text being typed on the screen. The last two chapter go into more advanced topics such as security and resizing."

JohnCoene commented 3 years ago

Gah, I totally agree with you, htmlwidgets just ties an HTML output (e.g.: <div>) with data and a JavaScript "process" (for lack of a better word) and is therefore not limited to "data visualisation."

Initially, I had chapter 6 on typed.js but reviewers rightfully said it was confusing to open the section on "Data visualisation" with text animation.

Reading your comment here I realise I perhaps should have changed the name of that part of the book from "Data visualisation" to "Building Widgets" (to steal the title of your awesome blog by the same token).

I'm on the fence.