{"id":13778622,"url":"https://github.com/oxyplot/oxyplot-avalonia","last_synced_at":"2025-04-05T14:09:56.963Z","repository":{"id":26044649,"uuid":"94307409","full_name":"oxyplot/oxyplot-avalonia","owner":"oxyplot","description":"A cross-platform plotting library for .NET. This package targets Avalonia apps.","archived":false,"fork":false,"pushed_at":"2024-08-11T15:03:23.000Z","size":550,"stargazers_count":269,"open_issues_count":11,"forks_count":47,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-30T01:02:41.790Z","etag":null,"topics":["avalonia","avaloniaui","charts","dotnet","netstandard","oxyplot","plotting"],"latest_commit_sha":null,"homepage":"https://oxyplot.github.io/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oxyplot.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":"2017-06-14T08:22:21.000Z","updated_at":"2024-10-26T00:23:49.000Z","dependencies_parsed_at":"2024-01-13T12:22:09.561Z","dependency_job_id":"ba6cb059-28e7-4fdf-bfd9-2be2b58ca955","html_url":"https://github.com/oxyplot/oxyplot-avalonia","commit_stats":{"total_commits":100,"total_committers":33,"mean_commits":"3.0303030303030303","dds":0.73,"last_synced_commit":"9913a97d79a75585abd0ee5b417739ac52bca4c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxyplot%2Foxyplot-avalonia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxyplot%2Foxyplot-avalonia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxyplot%2Foxyplot-avalonia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxyplot%2Foxyplot-avalonia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxyplot","download_url":"https://codeload.github.com/oxyplot/oxyplot-avalonia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345856,"owners_count":20924102,"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":["avalonia","avaloniaui","charts","dotnet","netstandard","oxyplot","plotting"],"created_at":"2024-08-03T18:00:55.454Z","updated_at":"2025-04-05T14:09:56.943Z","avatar_url":"https://github.com/oxyplot.png","language":"C#","readme":"[![nuget](https://img.shields.io/nuget/v/OxyPlot.Avalonia.svg)](https://www.nuget.org/packages/OxyPlot.Avalonia) ![License](https://img.shields.io/github/license/oxyplot/oxyplot-avalonia.svg) ![Size](https://img.shields.io/github/repo-size/oxyplot/oxyplot-avalonia.svg)\n\n# OxyPlot.Avalonia\n\n[OxyPlot](https://github.com/oxyplot) is a plotting library for .NET. This [package](https://www.nuget.org/packages/OxyPlot.Avalonia) targets Avalonia applications.\n\n```\ndotnet add package OxyPlot.Avalonia\n```\n\n### Usage\n\nTo use the library, add the following to your `App.xaml`:\n\n```xml\n\u003cApplication xmlns=\"https://github.com/avaloniaui\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n             x:Class=\"Sensei.Presentation.Avalonia.App\"\u003e\n    \u003cApplication.Styles\u003e\n        \u003cStyleInclude Source=\"avares://Avalonia.Themes.Default/DefaultTheme.xaml\"/\u003e\n        \u003cStyleInclude Source=\"avares://Avalonia.Themes.Default/Accents/BaseLight.xaml\"/\u003e\n      \n        \u003c!-- Add the line below to get OxyPlot UI theme applied. --\u003e\n        \u003cStyleInclude Source=\"resm:OxyPlot.Avalonia.Themes.Default.xaml?assembly=OxyPlot.Avalonia\"/\u003e\n      \n        \u003c!-- Add the line below to get OxyPlot UI theme applied in Avalonia 11. --\u003e\n        \u003cStyleInclude Source=\"avares://OxyPlot.Avalonia/Themes/Default.axaml\"/\u003e\n    \u003c/Application.Styles\u003e\n\u003c/Application\u003e\n```\n\nThen, you can add plots to your application, as such:\n\n```xml\n\u003cavalonia:Plot Height=\"150\" \n               PlotMargins=\"50 0 0 0\"\n               PlotAreaBorderColor=\"#999999\"\u003e\n    \u003cavalonia:Plot.Series\u003e\n        \u003cavalonia:AreaSeries \n            DataFieldX=\"Index\"\n            DataFieldY=\"Value\"\n            ItemsSource=\"{Binding Path=Values}\"\n            Color=\"#fd6d00\" /\u003e\n    \u003c/avalonia:Plot.Series\u003e\n\u003c/avalonia:Plot\u003e\n```\n\nSee the [AvaloniaExamples](https://github.com/oxyplot/oxyplot-avalonia/tree/master/Source/Examples/Avalonia/AvaloniaExamples) project and [OxyPlot Documentation](https://readthedocs.org/projects/oxyplot/downloads/pdf/latest/) to learn how to create more complex plots. \n\n\n### Installing Preview Versions\n\nTo access the latest version of `OxyPlot.Avalonia` you can add this repo as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to your own git repo:\n\n```sh\nmkdir ./external\ngit submodule add git@github.com:oxyplot/oxyplot-avalonia.git ./external/oxyplot-avalonia\n# Reference the ../external/oxyplot-avalonia/Source/OxyPlot.Avalonia/OxyPlot.Avalonia.csproj project then.\n```\n\nAnother way is to import our [Azure Artifacts NuGet package feed](https://worldbeater.visualstudio.com/OxyPlot.Avalonia/_packaging) by creating the following `nuget.config` file:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cconfiguration\u003e\n  \u003cpackageSources\u003e\n    \u003cclear /\u003e \u003c!-- Add other external NuGet package sources here --\u003e\n    \u003cadd key=\"OxyPlot.Avalonia-CI\" value=\"https://worldbeater.pkgs.visualstudio.com/OxyPlot.Avalonia/_packaging/OxyPlot.Avalonia-CI/nuget/v3/index.json\" /\u003e\n  \u003c/packageSources\u003e\n\u003c/configuration\u003e\n```\n\nNext, install the latest preview version of the `OxyPlot.Avalonia` package as such:\n\n```\ndotnet add package OxyPlot.Avalonia\n```\n","funding_links":[],"categories":["Libraries \u0026 Extensions"],"sub_categories":["Charts \u0026 Plots \u0026 Diagrams"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxyplot%2Foxyplot-avalonia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxyplot%2Foxyplot-avalonia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxyplot%2Foxyplot-avalonia/lists"}