Giter VIP home page Giter VIP logo

documentation-examples's Introduction

OxyPlot is a cross-platform plotting library for .NET

Plot

Getting started

  1. Use the NuGet package manager to add a reference to OxyPlot (see details below if you want to use pre-release packages)
  2. Add a PlotView to your user interface
  3. Create a PlotModel in your code
  4. Bind the PlotModel to the Model property of your PlotView

Examples

You can find examples in the /Source/Examples folder in the code repository.

NuGet packages

The latest pre-release packages are pushed to myget.org. To install these packages, set the myget.org package source https://www.myget.org/F/oxyplot and remember the "-pre" flag.

The stable release packages will be pushed to nuget.org. Note that we have have a lot of old (v2015.*) and pre-release packages on this feed, and sometimes these show up even if they are unlisted.

See the wiki for information about the available packages.

More information

Contribute

See Contributing for information about how to contribute!

documentation-examples's People

Contributors

anuviswan avatar boguscoder avatar objorke avatar seijikun avatar tibel avatar visualmelon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

documentation-examples's Issues

Xamarin Forms add itemsource to var barSeries = new ColumnSeries from ObservableRangeCollection

Hi, I want to populate itemsource items with: var items = Registrar.OrderBy(c => c.Especie).Select(x => x.Ancho).ToList();

I was thinking of something like this perhaps??

var barSeries = new ColumnSeries
{
ItemsSource = new List(new[]
{
new BarItem{ Value = Registrar.OrderBy(c => c.Especie).Select(x => x.Ancho),
},

             }),
            LabelPlacement = LabelPlacement.Inside,
            LabelFormatString = "{0}"
        };

Nuget Visual Studio 2015

Hi bro,

i am currently using microsoft visual studio 2015.

i am trying the helloworld example.

after i nuget oxyplot, in the packages.config, i realized that there is a purple line under , said "the "packages" element is not declared."

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="OxyPlot.Core" version="1.0.0" targetFramework="net452" />
  <package id="OxyPlot.WindowsForms" version="1.0.0" targetFramework="net452" />
</packages>

do bro has any idea on how to solve this issue ?

regards.

Target framework problem

While downloading the Oxyplot.Xamarin.Mac to Visual Studio for Mac it says it is not compatible with the current framework, and swapping frame doesn't work. This is especially odd, because the same framework is used in the example (according to .csproj file), though another version (which could explain the error?).
The error: Could not install package 'OxyPlot.Core 2015.1.989-alpha'. You are trying to install this package into a project that targets 'Xamarin.Mac,Version=v2.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author
Related StackOverflow question: https://stackoverflow.com/questions/39519948/xamarin-mac-draw-a-graph

AndroidApp1 not working with OxyPlot.Core v2.1.0

Steps to reproduce

  1. Open AndroidApp1 project
  2. Update OxyPlot.Core NuGet package to 2.1.0
  3. Run (I used Pixel 3a Android 11 simulator)

Expected behavior

The plot shows up.

Actual behavior

An exception is thrown:

System.TypeLoadException
Message=Type OxyPlot.Xamarin.Android.CanvasRenderContext has invalid vtable method slot 7 with method OxyPlot.RenderContextBase:DrawLine (System.Collections.Generic.IList`1<OxyPlot.ScreenPoint>,OxyPlot.OxyColor,double,OxyPlot.EdgeRenderingMode,double[],OxyPlot.LineJoin)

Xamarin Forms iOS not showing anything

Hello,

i have problem getting the plot working on iOS. I have
a Xamarin.Forms Project and it's working fine on Android
but i can't get it working on iOS. I tried nearly everything and
i'm really out of ideas at the moment.

I have the newest Xamarin Version (I tried it with the one before though),
and the newest Oxyplot Version 1.0.0.
The Device is an iPhone 6s with iOS 12.2.

It's just a simple Plotmodel with two Axes where i add a few Points to my LineSeries.


Model = new PlotModel {
                LegendPlacement = LegendPlacement.Outside,
                LegendPosition = LegendPosition.BottomCenter,
                LegendOrientation = LegendOrientation.Horizontal
            };

            Model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Key = "left" });
            Model.Axes.Add(new DateTimeAxis { Position = AxisPosition.Bottom, Title = "Time" });
 var series = new LineSeries()
                        {
                            Tag = "1408",
                            MarkerType = MarkerType.Circle,
                            Title = (string)"Test"
                        };
                        Model?.Series?.Add(series);
series.Points.Add(new DataPoint(DateTimeAxis.ToDouble(DateTime.Now), 12));
                            }

Please any help is appreaciated. Very good plugin by the way, really great work!

WinPhone Namespace incorrect

Hello,

Looks like the line should really be:

OxyPlot.Xamarin.Forms.Platform.WP8.Forms.Init();

  • "WinPhone" is not a namespace in the forms code, "WP8" is however.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.