Skip to content

Commit

Permalink
update declutter.html
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Jun 20, 2024
1 parent 0207712 commit 2d02289
Show file tree
Hide file tree
Showing 5 changed files with 5,060 additions and 467 deletions.
12 changes: 4 additions & 8 deletions caveat/declutter.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Getting rid of all the unnecessary elements can greatly improve the quality and

Here is a good example that takes a cluttered graphic from [viz.wtf](http://viz.wtf) and gets rid of the unnecessary elements. This example comes from the website [Storytelling with data](http://www.storytellingwithdata.com/blog/2017/3/29/declutter-this-graph) by [Cole Nussbaumer Knaflic](http://www.storytellingwithdata.com/about/).

#Initial graphic
# Initial graphic
***
The idea of the chart is to show that women tend to begin Christmas shopping earlier than men:

Expand All @@ -36,7 +36,7 @@ The idea of the chart is to show that women tend to begin Christmas shopping ear
<br>


#Final appearance:
# Final appearance:
***

<br>
Expand All @@ -48,7 +48,7 @@ The idea of the chart is to show that women tend to begin Christmas shopping ear



#Step by step
# Step by step
***

Here are the components you can consider removing when making a chart:
Expand All @@ -74,18 +74,14 @@ Here is an animation showing the evolution of the previous chart at each step of
<br>


#Going further
# Going further
***

- Visit the website [Story Telling with data](http://www.storytellingwithdata.com/)
- Order [Cole's book](http://www.storytellingwithdata.com/book/): a data visualization guide for business professionals
- [Data looks better naked](https://www.darkhorseanalytics.com/blog/data-looks-better-naked), by Dark Horse Analytics.


#Comments
***
Any thoughts on this? Found any mistake? Disagree? Please drop me a word on [twitter](https://twitter.com/R_Graph_Gallery) or in the comment section below:
<br>



Expand Down
2,562 changes: 2,372 additions & 190 deletions caveat/declutter.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion caveat/small_multiple.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ output:
number_section: FALSE
df_print: "paged"
code_folding: "hide"
includes:
includes:
after_body: footer.html
---

Expand Down
2,854 changes: 2,622 additions & 232 deletions caveat/small_multiple.html

Large diffs are not rendered by default.

97 changes: 61 additions & 36 deletions caveat/template_caveat.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@
content="Data,Dataviz,Datavisualization,Plot,Chart,Graph,R,Python,D3,Learning,Caveat,Pitfall,Mistake,Classification"
/>
<meta name="author" content="Yan Holtz and Conor Healy" />
<link rel="icon" href="img/logo/data-to-viz.ico" />
<link
rel="icon"
href="https://raw.githubusercontent.com/holtzy/data_to_viz/master/img/logo/data-to-viz.ico"
/>

<!-- Control appearance when share by social media -->
<meta property="og:title" content="$mytitle$" />
<meta property="og:image" content="$myimage1$" />
<meta
property="og:image"
content="https://raw.githubusercontent.com/holtzy/data_to_viz/master/img/parallax/caveat_gallery_overview.png"
/>
<meta
property="og:description"
content="A classification of chart types based on their input data format."
content="Dataviz pitfall gallery | $mytitle$"
/>
<meta
property="og:url"
Expand Down Expand Up @@ -500,46 +506,65 @@ <h4 class="date"><em>$date$</em></h4>
</div>
$endif$ $if(toc_float)$ $else$ $if(toc)$
<div id="$idprefix$TOC">$toc$</div>
$endif$ $endif$ $body$

<!-- Insert code for DISQUS comments -->

<div class="container">
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url =
www.data - to - viz.com / caveat / $pathSlug$.html;
this.page.identifier = $pathSlug$;
};

(function () {
// DON'T EDIT BELOW THIS LINE
var d = document,
s = d.createElement("script");
s.src = "https://data-to-viz.disqus.com/embed.js";
s.setAttribute("data-timestamp", +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript
>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript"
>comments powered by Disqus.</a
></noscript
>
</div>
<!-- Insert code for DISQUS comments -->

$for(include-after)$ $include-after$ $endfor$ $if(theme)$
$if(toc_float)$
$endif$ $endif$ $body$ $if(theme)$ $if(toc_float)$
</div>
</div>
$endif$

<section
id="form"
style="
margin-top: 70px;
padding-bottom: 70px;
padding-top: 70px;
background-color: #f8f9fa;
"
>
<div class="container">
<div
style="display: flex; flex-direction: column; align-items: center"
>
<h2 style="font-size: 44px" class="text-center">
Dataviz decision tree
</h2>
<p class="text-center" style="max-width: 600px; font-size: 18px">
<a href="https://www.data-to-viz.com">Data To Viz</a> is a
comprehensive <b>classification of chart types</b> organized by
data input format. Get a high-resolution version of our decision
tree delivered to your inbox now!
</p>
<div
style="
margin-top: -50px;
width: 100%;
display: flex;
justify-content: center;
"
>
<script
async
data-uid="8010f15fd2"
src="https://prodigious-trailblazer-3628.ck.page/8010f15fd2/index.js"
></script>
</div>
<br />
<div class="text-center">
<img
class="img-fluid"
src="../img/poster/poster_small.png"
alt="High Resolution Poster"
style="max-width: 400px"
/>
</div>
</div>
</div>
</section>

$for(include-after)$ $include-after$ $endfor$
</div>

<script>

// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
$$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
Expand Down

0 comments on commit 2d02289

Please sign in to comment.