{"id":17991735,"url":"https://github.com/frankdilo/fdgraphview","last_synced_at":"2025-03-25T23:32:26.090Z","repository":{"id":7462993,"uuid":"8809319","full_name":"frankdilo/FDGraphView","owner":"frankdilo","description":"The simplest way to draw graphs representing data.","archived":true,"fork":false,"pushed_at":"2015-11-07T10:43:04.000Z","size":211,"stargazers_count":82,"open_issues_count":0,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-03T23:51:27.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frankdilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-15T21:27:18.000Z","updated_at":"2025-02-09T11:21:50.000Z","dependencies_parsed_at":"2022-09-09T02:01:08.498Z","dependency_job_id":null,"html_url":"https://github.com/frankdilo/FDGraphView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdilo%2FFDGraphView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdilo%2FFDGraphView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdilo%2FFDGraphView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdilo%2FFDGraphView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankdilo","download_url":"https://codeload.github.com/frankdilo/FDGraphView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245562293,"owners_count":20635897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T19:23:57.141Z","updated_at":"2025-03-25T23:32:25.349Z","avatar_url":"https://github.com/frankdilo.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FDGraphView\n\n`FDGraphView` is an UIView subclass I created for [Libretto](http://frankdilo.xyz/apps/libretto). It was built using the CoreGraphics’ APIs.\n\n## Usage\n\n### FDGraphView\n\nAdd `FDGraphView.{h,m}` to your project, import the header where you want to use this component and here you go:\n\n    FDGraphView *graphView = [[FDGraphView alloc] initWithFrame:CGRectMake(10, 130, 300, 200)];\n    \n    graphView.dataPoints = @[@1, @2, @5, @12, @30, @100];\n    \n    [self.view addSubview:graphView];\n\n![](sample.png)\n\nA few style-related options are available, look in the header file.\n\n    // Style\n    @property (nonatomic) UIEdgeInsets edgeInsets;\n    @property (nonatomic) CGFloat dataPointsXoffset;\n    // -- colors\n    @property (nonatomic, strong) UIColor *dataPointColor;\n    @property (nonatomic, strong) UIColor *dataPointStrokeColor;\n    @property (nonatomic, strong) UIColor *linesColor;\n\n### FDGraphScrollView\n\nThis is a subclass of `UIScrollView` that serves as a wrapper around `FDGraphView`.\n\nAdd `FDGraphScrollView.{h,m}` to your project, import the header where you want to use the component:\n\n    FDGraphScrollView *scrollView = [[FDGraphScrollView alloc] initWithFrame:CGRectMake(10, 130, 300, 200)];\n    \n    // data\n    scrollView.dataPoints = @[@1, @2, @5, @12, @30, @100, @123, @44];\n    \n    [self.view addSubview:scrollView];\n\nThis is the result:\n\n![](sample2.png)\n\n## TODO\n\nIf you want to help here are some ideas:\n\n- [ ] Add more styling options\n- [x] Create an UIScrollView wrapper to display larger data sets\n\n## LICENSE\n\nMIT: use it however you want.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankdilo%2Ffdgraphview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankdilo%2Ffdgraphview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankdilo%2Ffdgraphview/lists"}