{"id":15059639,"url":"https://github.com/ralfnorthman/elm-zoom-plot","last_synced_at":"2025-06-16T10:41:27.737Z","repository":{"id":52692986,"uuid":"176272030","full_name":"RalfNorthman/elm-zoom-plot","owner":"RalfNorthman","description":"Zoomable line charts with nice time axes.","archived":false,"fork":false,"pushed_at":"2021-04-20T20:56:19.000Z","size":455,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:54:37.216Z","etag":null,"topics":["data-visualization","elm","elm-lang","elm-language","line-chart","line-charts","plot","plots","visualization","zoom","zoomable"],"latest_commit_sha":null,"homepage":"https://ralfnorthman.github.io/elm-zoom-plot","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RalfNorthman.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}},"created_at":"2019-03-18T11:47:22.000Z","updated_at":"2020-09-12T06:47:43.000Z","dependencies_parsed_at":"2022-08-22T04:01:43.064Z","dependency_job_id":null,"html_url":"https://github.com/RalfNorthman/elm-zoom-plot","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RalfNorthman%2Felm-zoom-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RalfNorthman%2Felm-zoom-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RalfNorthman%2Felm-zoom-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RalfNorthman%2Felm-zoom-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RalfNorthman","download_url":"https://codeload.github.com/RalfNorthman/elm-zoom-plot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166165,"owners_count":21058474,"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":["data-visualization","elm","elm-lang","elm-language","line-chart","line-charts","plot","plots","visualization","zoom","zoomable"],"created_at":"2024-09-24T22:46:09.162Z","updated_at":"2025-04-10T05:40:54.482Z","avatar_url":"https://github.com/RalfNorthman.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zoomable Line Charts\n\nThe main objective of this package is to draw line charts which have:\n* mouse drag zoom\n* reasonable time axes\n\nSee it in action:\nhttps://ralfnorthman.github.io/elm-zoom-plot/\n\nSample code:\n\n```elm\nimport ZoomPlot as Plot\n\n\ntype alias Point =\n    { x : Float, y : Float }\n\n\nmyPoints =\n    [ Point 11 120\n    , Point 12 121\n    , Point 13 120.5\n    , Point 14 119.5\n    ]\n\n\ntype alias Model =\n    { plotState : Plot.State Point }\n\n\ninit : Model\ninit =\n    { plotState = Plot.init }\n\n\ntype Msg\n    = ToPlot (Plot.Msg Point)\n\n\nupdate : Msg -\u003e Model -\u003e Model\nupdate msg model =\n    case msg of\n        ToPlot plotMsg -\u003e\n            { model\n                | plotState =\n                    Plot.update\n                        plotMsg\n                        model.plotState\n            }\n\n\nview : Model -\u003e Html Msg\nview model =\n    Plot.points\n        { toMsg = ToPlot\n        , data = myPoints\n        }\n        |\u003e Plot.drawHtml model.plotState\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralfnorthman%2Felm-zoom-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fralfnorthman%2Felm-zoom-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralfnorthman%2Felm-zoom-plot/lists"}