Skip to content

Is it possible to make a custom-drawn chart area? #51

Answered by VisualMelon
marklam asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think I've understood what you mean; there is an Overlay example which may or may not be useful: shows how to listen to the axes to update a component that isn't managed by OxyPlot.

Another thing you could do is just grab the canvas that OxyPlot draws to and stuff whatever you want in the back of that as part of a custom annotation (so that it gets access to the usual APIs that annotations use) by passing the IRenderContext interface (i.e. use reflection to get at the innards of the concrete CanvasRenderContext)

Overlay example: https://github.com/oxyplot/oxyplot-avalonia/blob/master/Source/Examples/Avalonia/AvaloniaExamples/Examples/OverlayDemo/MainWindow.xaml.cs
CreateAndAdd in C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marklam
Comment options

Answer selected by marklam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants