{"id":20934474,"url":"https://github.com/jaxon-php/jaxon-flot","last_synced_at":"2025-12-26T02:59:17.409Z","repository":{"id":56997039,"uuid":"60431671","full_name":"jaxon-php/jaxon-flot","owner":"jaxon-php","description":"Javascript charts for Jaxon with Flot","archived":false,"fork":false,"pushed_at":"2024-09-28T18:41:42.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-04T12:05:53.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.jaxon-php.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaxon-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-04T21:49:41.000Z","updated_at":"2024-09-28T18:41:45.000Z","dependencies_parsed_at":"2024-08-03T07:46:14.751Z","dependency_job_id":null,"html_url":"https://github.com/jaxon-php/jaxon-flot","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"79b80bf6cafb8ebd74b1df8c5807bed14e68de7b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-flot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-flot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-flot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-flot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaxon-php","download_url":"https://codeload.github.com/jaxon-php/jaxon-flot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225258934,"owners_count":17445834,"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-11-18T22:09:29.654Z","updated_at":"2025-12-26T02:59:17.404Z","avatar_url":"https://github.com/jaxon-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Javascript charts for Jaxon with Flot\n=====================================\n\nJavascript charts for Jaxon with the Flot library.\nhttp://www.flotcharts.org\n\nInstallation\n------------\n\nInstall this package with Composer.\n\n```json\n\"require\": {\n    \"jaxon-php/jaxon-flot\": \"^5.0\"\n}\n```\n\nUsage\n-----\n\nCreate a new plot to be displayed in a div with a given id, eg. \"flot-container\".\n\n```php\n    $plot = $response-\u003eflot-\u003eplot('#flot-container');\n```\n\nAdd a graph in the plot, and set its parameters.\n\n```php\n    $graph = $plot-\u003egraph(['label' =\u003e 'Plot example', 'lines' =\u003e ['show' =\u003e true]]);\n```\nThe options are defined in [the API docs](https://github.com/flot/flot/blob/master/API.md#plot-options).\n\nSet the graph data using an array of points.\n\n```php\n    $graph-\u003eseries()-\u003epoints([[0, 3], [4, 8], [8, 5], [9, 13]]);\n```\n\nOr a javascript expression.\n\n```php\n    $graph-\u003eseries()-\u003eexpr(0, 14, 0.5, 'Math.sqrt(x * 10)');\n```\n\nOptionally, set the xaxis labels.\n\n```php\n    $ticks = [];\n    for($i = 0; $i \u003c 10; $i++) $ticks[] = [$i, 'Pt' . $i];\n    $plot-\u003exaxis()-\u003epoints($ticks);\n```\n\nOptionally, set the dimensions of the plot.\nIf the dimensions are not set here, make sure they are in HTML or CSS code.\nThe Flot library requires the container to have width and height set.\n\n```php\n    $plot-\u003ewidth('600px')-\u003eheight('300px');\n```\n\nFinally, draw the graph.\n\n```php\n    $response-\u003eflot-\u003edraw($plot);\n```\n\nYou can add as many graphs as you need in a single plot, and you can draw many plots in a single page.\n\nContribute\n----------\n\n- Issue Tracker: github.com/jaxon-php/jaxon-flot/issues\n- Source Code: github.com/jaxon-php/jaxon-flot\n\nLicense\n-------\n\nThe project is licensed under the BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxon-php%2Fjaxon-flot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaxon-php%2Fjaxon-flot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxon-php%2Fjaxon-flot/lists"}