Disable zoom in not working
Steps to reproduce
Platform: .NET version:
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead Can you also include a screen shot?
Feature description
Write a description of the feature. How should it work? How should it look? Include some graphics if this could help!
Hello there,
i set the IsZoomEnabled = false for the categoryaxis but it does not work
I can't reproduce this with a simple example: can you provide your axis initialisation code, and explain what behaviour you see and as a result of which user activity?
ChartModel.LegendTitle = "Test";
ChartModel.LegendOrientation = LegendOrientation.Horizontal;
ChartModel.LegendPlacement = LegendPlacement.Outside;
ChartModel.LegendPosition = LegendPosition.TopLeft;
ChartModel.LegendBackground = OxyColor.FromAColor(200, OxyColors.White);
ChartModel.LegendBorder = OxyColors.Black;
var barSeries = new BarSeries.BarSeries { LabelPlacement = LabelPlacement.Inside, };
ChartModel.Series.Add(barSeries);
ChartModel.Axes.Add(new OxyPlot.Axes.CategoryAxis
{
Position = AxisPosition.None,
IsZoomEnabled = false
});
for instance: ChartModel.LegendBorderThickness = 0; ChartModel.LegendOrientation = LegendOrientation.Horizontal; ChartModel.LegendPlacement = LegendPlacement.Outside; ChartModel.LegendPosition = LegendPosition.BottomCenter; ChartModel.Title = "Simple stacked model";
var categoryAxis1 = new OxyPlot.Axes.CategoryAxis();
categoryAxis1.MinorStep = 1;
categoryAxis1.IsZoomEnabled = false;
categoryAxis1.Labels.Add("Category A");
categoryAxis1.Labels.Add("Category B");
categoryAxis1.Labels.Add("Category C");
categoryAxis1.Labels.Add("Category D");
ChartModel.Axes.Add(categoryAxis1);
BarSeries.BarSeries s1 = new BarSeries.BarSeries();
s1.IsStacked = true;
s1.StrokeThickness = 1;
s1.Title = "Series 1";
s1.Items.Add(new BarItem
{
Value = 35
});
s1.Items.Add(new BarItem
{
Value = 26
});
s1.Items.Add(new BarItem
{
Value = 39
});
s1.Items.Add(new BarItem
{
Value = 45
});
ChartModel.Series.Add(s1);