funkce pro vytváření diagramů