Changed chart implementation to render directly in svg