OxyPlot: how to hide left and top axis lines
<p>I'm using to Oxyplot for my Xamarin.iOS project for plotting a bar chart</p>

<p>This is what my plot currently looks like </p>

<p><a href="https://i.stack.imgur.com/ivow8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ivow8.png" alt="enter image description here"></a></p>

<p>Here I need to hide the Right and top axis </p>

<p>I tried :</p>

<pre><code>model.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Right,
    IsAxisVisible = false
});
model.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Top,
    IsAxisVisible = false
});
</code></pre>

<p>But no effect.. Here's my full code</p>

<pre><code>public MyClass()
{
    var model = new PlotModel { Title = "ColumnSeries" };
    // A ColumnSeries requires a CategoryAxis on the x-axis.

    model.Axes.Add(new CategoryAxis()
    {
        Position = AxisPosition.Bottom,
        MinorTickSize = 0,
        //MajorGridlineStyle = LineStyle.Solid,
        MinorGridlineStyle = LineStyle.Solid,
    });

    model.Axes.Add(new LinearAxis()
    {
        Position = AxisPosition.Left,
        MinorTickSize = 0,
        MajorGridlineStyle = LineStyle.Solid,
        MinorGridlineStyle = LineStyle.Solid,
        Minimum = 0,
        Maximum = 400
    });
    model.Axes.Add(new LinearAxis()
    {
        Position = AxisPosition.Right,
        IsAxisVisible = false
    });
    model.Axes.Add(new LinearAxis()
    {
        Position = AxisPosition.Top,
        IsAxisVisible = false
    });

    var series = new ColumnSeries();
    series.Items.Add(new ColumnItem() { Value = 200});
    series.Items.Add(new ColumnItem(200));
    series.Items.Add(new ColumnItem(300));
    series.Items.Add(new ColumnItem(100));
    series.Items.Add(new ColumnItem(200));
    series.Items.Add(new ColumnItem(100));
    series.Items.Add(new ColumnItem(130));

    model.Series.Add(series);

    this.MyModel = model;
}
</code></pre>

<p>How do I do it? Any help is appreciated....</p>

<p>Edit:</p>

<p>Also, In my chart above, why are the y labels not showing. How can I change the x labels like below... Is it possible to draw lines in this chart like below?</p>

<p>This is what I want my final graph to look like: </p>

<p><a href="https://i.stack.imgur.com/ZyjG3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZyjG3.png" alt="enter image description here"></a></p>