#include #include #include "svg.h" using namespace std; void show_histogram_svg(const std::vector& bins) { const auto IMAGE_WIDTH = 400; const auto IMAGE_HEIGHT = 300; const auto TEXT_LEFT = 20; const auto TEXT_BASELINE = 20; const auto TEXT_WIDTH = 50; const auto BIN_HEIGHT = 30; const auto BLOCK_WIDTH = 10; cout << "" << endl; cout << "" << endl; cout << "" << endl; double top = 0; for (size_t i = 0; i < bins.size(); i++) { top = TEXT_BASELINE + i * BIN_HEIGHT; cout << "" << i << "" << endl; // зер стл for (size_t j = 0; j < bins[i]; j++) { // Х право-лево size_t x_position = bins[i] - j - 1; cout << "" << endl; } } cout << "" << endl; }