Skip to content

MichalAdorno/mosaic-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mosaic Graph Generator

The program generates a mosaic graph. (This kind of graphs is commonly used in economics)

The usage of program parameters is described in the main.go file (lines: 14-19). It takes a CSV file with the following format as an input:

textiles,25.0
clothing,25.0
footwear,50.0

and returns a graph as an output:

Alt text

(Note: I skipped printing category names on the graph because I was mainly interested in the algorithm to generate the graph.)

(Note: This is not the only solution, and can be further fine-tuned by introducing category groups, different approach to splitting, incl. pre-sorting etc.)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages