Chart in C