{"id":16868566,"url":"https://github.com/mojoaxel/flot-events","last_synced_at":"2025-04-11T10:33:23.787Z","repository":{"id":27127509,"uuid":"30595903","full_name":"mojoaxel/flot-events","owner":"mojoaxel","description":"Show (Event) Markers. Plugin for flot charts.","archived":false,"fork":false,"pushed_at":"2019-11-15T10:27:35.000Z","size":69,"stargazers_count":4,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T06:03:36.834Z","etag":null,"topics":["flot","flot-charts","flot-events","hacktoberfest","markers"],"latest_commit_sha":null,"homepage":"http://mojoaxel.github.io/flot-events","language":"JavaScript","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/mojoaxel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["mojoaxel"],"custom":["https://www.paypal.me/mojoaxel"]}},"created_at":"2015-02-10T14:30:19.000Z","updated_at":"2020-10-04T14:28:23.000Z","dependencies_parsed_at":"2022-08-31T00:01:28.734Z","dependency_job_id":null,"html_url":"https://github.com/mojoaxel/flot-events","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojoaxel%2Fflot-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojoaxel%2Fflot-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojoaxel%2Fflot-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojoaxel%2Fflot-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojoaxel","download_url":"https://codeload.github.com/mojoaxel/flot-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233965978,"owners_count":18758384,"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":["flot","flot-charts","flot-events","hacktoberfest","markers"],"created_at":"2024-10-13T14:58:48.045Z","updated_at":"2025-01-14T22:18:19.082Z","avatar_url":"https://github.com/mojoaxel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/mojoaxel","https://www.paypal.me/mojoaxel"],"categories":[],"sub_categories":[],"readme":"# flot-events\nFlot Charting Library Plugin to show Events-Markers\n\n## Interactive Example\n\n* [Open Demo](./example/)\n* [Show example source](https://github.com/mojoaxel/flot-events/blob/master/example/index.html)\n\n## Docs\n\n```javascript\nvar types = [{\n  eventType: \"Info\",\n  color: \"blue\"\n}, {\n  eventType: \"Critical\",\n  color: \"red\", // e.g red, #F00, #FF0000, [gray]\n  position: 'BOTTOM', //[TOP], BOTTOM\n  lineStyle: 'solid', //dotted, [dashed], solid\n  lineWidth: 2, //[1]px\n  markerSize: 10, //in px, [5]\n  markerShow: true, // [true], false\n  markerTooltip: true // [true], false \n}];\n\nvar events = [{\n  min: 1,\n  max: 1,\n  eventType: \"Info\",\n  title: \"Info Event\",\n  description: \"At position x=1 something happend!\"\n}, {\n  min: 2,\n  max: 3,\n  eventType: \"Critical\",\n  title: \"Critical region\",\n  description: \"Between x=2..3 something is critical\"\n}];\n\nvar plot = $.plot($('#plot'), [ data ], {\n  /* this activates the events plugin and sets options */\n  events: {\n    data: events,\n    types: types\n  },\n  /* optional for range highlighting; depends on jquery.flot.selection.*/\n  selection: {\n    color: \"#e8cfac\"\n  },\n});\n\n/* It is also possible to add events dynamically \n * after initialization by using the setEvents function \n */\n$('button').click(function() {\n\tplot.setEvents([{\n\t\tmin: 2.5,\n\t\tmax: 2.5,\n\t\teventType: \"Simple\",\n\t\ttitle: \"dynamically added event\"\n\t}]);\n});\n```\n\nThis plugin is tested to work together with these plugins:\n\n* jquery.flot.axislabels\n* jquery.flot.canvas\n* jquery.flot.downsample\n* jquery.flot.tooltip\n* jquery.flot.time\n* jquery.flot.selection\n* jquery.flot.navigate\n\n## License\n\nDual licensed under [MIT](http://opensource.org/licenses/MIT) and [GPLv2](http://opensource.org/licenses/gpl-2.0.php)\nThis plugin is based on [Joel Oughtons](https://github.com/oughton) [\"Event Graphics\" plugin](http://joeloughton.com/blog/web-applications/flot-plugins-event-graphics/) from his [flot-plugin-collection](https://github.com/oughton/flot-plugin-collection) witch is also licensed under MIT and GPLv2.\n\n## Versions\n\n### 0.2.5\n* added function \"setEvents\" to dynamically add events (thx to callicles) \n\n### 0.2.4\n* removed `console.log`\n\n### 0.2.3\n* added option \"markerTooltip\" with default `true`\n\n### 0.2.2\n* added option \"markerShow\" with default `true`\n* added option \"lineWidth\" with default `1`\n\n### 0.2.1\n* registered with bower\n\n### 0.2.0\n* first release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojoaxel%2Fflot-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojoaxel%2Fflot-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojoaxel%2Fflot-events/lists"}