Demonstrate all features present in ukraine_map_data/ukraine.json
.
Demonstrate how you can highlight a specific region. Note: regions' names are in Ukrainian.
Demonstrate how you can display on a map data that changes during some period of time.
Please, note that this example is not a reliable source of information about 2014 Ukrainian Regional State Administration occupations. I've tried to be correct, but I might have done a few mistakes. See data_explanation.md
for more details.
Demonstrate how you can display on a map data that changes during some period of time and how to create a legend.
Please, note that this example is not a reliable source of information about 2014 Ukrainian Regional State Administration occupations. I've tried to be correct, but I might have done a few mistakes. See data_explanation.md
for more details.
Demonstrate how you can draw a path in SVG with animation. Move mouse over the text to see the effect. Based on technic described in Polygon feature design: SVG animations for fun and profit.
Steps to reproduce: | |
1. Create gist with non-empty description. | |
2. Add binary file to the gist. | |
3. Try to change description. |
// extern_template.h, .cc don't correspond to interface/implementation pattern. | |
// They have the same name so that IWYU prints recommendations for both files. | |
#include "extern_template.h" | |
#include "indirect.h" | |
class IndirectClass; | |
void foo() { | |
ExternTemplateClass<IndirectClass> et; |
-: 0:Source:/Users/vsapsay/Projects/OpenSource/llvm/llvm/tools/clang/tools/include-what-you-use/iwyu.cc | |
-: 0:Graph:iwyu.gcno | |
-: 0:Data:iwyu.gcda | |
-: 0:Runs:1 | |
-: 0:Programs:1 | |
-: 1://===--- iwyu.cc - main logic and driver for include-what-you-use ---------===// | |
-: 2:// | |
-: 3:// The LLVM Compiler Infrastructure | |
-: 4:// | |
-: 5:// This file is distributed under the University of Illinois Open Source |
Thought process was the following: | |
- How do we know that we don't need to #include <string> in sub.h, sub.cc? | |
- Well, sub.h won't compile without #include "base.h" and base.h requires <string>. | |
- But how can we tell that base.h requires <string>? | |
- The same way we decide that <string> is a desired include for sub.h, sub.cc. There is a full use of symbol std::string in sub.h, sub.cc, and <string> provides symbol std::string. So you need just to check if there are full uses, forward-declaration uses in base.h (and all other included headers). | |
- ...(awkward silence) | |
- Also, have you noticed that usage of std::string in base.cc doesn't trigger recommendation to #include <string> in base.cc? | |
- Yeah, <string> is accessible in base.cc via base.h, it's an associated include. So no need to #include <string> both in base.h and base.cc. |
Percentage streamgraphs are nice to show how percentage changes over time. But it is hard to notice nuanced trends for anything but the lowest layer. The idea to fix this is to allow to change what layer has even bottom. Click on graph or legend to see how it works.
As it turned out, this idea isn't new. Alan Dix has described this solution for histograms, you can find more information at http://www.meandeviation.com/dancing-histograms/
The problem
A stacked histogram allows three judgements: (i) the trends on the total height of the columns, (ii) the proportion of each category within each column and (iii) the trends in the lowest category. The trends, or even inter-column comparisons for any other category is very difficult as the blocks are at different heights.
The interactive stacked histogram solves this problem by allowing different trends to be analysed using the same dynamic graph. It is an example of a general princple of adding inter