svg creation of main chart