|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "histogram.h"
|
|
|
|
|
#include "text.h"
|
|
|
|
|
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
@ -35,8 +35,11 @@ input_data() {
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
|
|
std::string fill = "red";
|
|
|
|
|
std::string stroke = "#000000";
|
|
|
|
|
|
|
|
|
|
auto in = input_data();
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
show_histogram_text(bins, in.bin_count);
|
|
|
|
|
show_histogram_svg(bins, fill, stroke);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|