Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Commented Unassigned: Legend is not visible [10237]

$
0
0
I have currently run into some issues with Oxyplot. When creating a plot on a WPF grid, I need a legend for three series to be represented in the legend. However, when I try to set IsLegendVisible to true for my plot model or change any of the orientation, position, or placement, the legend is not visible at all. Would anyone have any ideas on how to address this problem?
Comments: I tried the following code, but cannot reproduce the error: ```cs [Example("#10237: Legend is not visible")] public static PlotModel LegendIsNotVisible() { var plotModel = new PlotModel { Title = "Issue 10237", }; plotModel.Series.Add(new LineSeries { Title = "LineSeries 1" }); plotModel.Series.Add(new LineSeries { Title = "LineSeries 2" }); plotModel.Series.Add(new LineSeries { Title = "LineSeries 3" }); plotModel.IsLegendVisible = true; plotModel.LegendPlacement = LegendPlacement.Inside; plotModel.LegendPosition = LegendPosition.RightMiddle; plotModel.LegendOrientation = LegendOrientation.Vertical; return plotModel; } ``` The plot shows the legend vertically on the inside/right/middle as expected. Is this a problem related to plot updating?

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>