Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Private X/YAxis in CategorySeries?
posted

Hello,

I recently went to upgrade the references in our projects from 2011.1 to 2011.2.  Everything went fine save one small issue:  The axis information is set programmatically, and in the function that does the axis setting I'm getting a notification that X and Y axis are set as private.  According to the documentation both fields are still public and this error results whether I manually upgrade or use the versioning utility.  

At this point in time it's preventing us from upgrading. Does anyone have insight as to exactly what might be going on here? Thank you.

This is the code that generates the issue:

        private static CategorySeries SetCommonLineProperties(

            CategorySeries categorySeries,
            ISeriesViewModel viewModel,
            CategoryXAxis xAxis,
            NumericYAxis yAxis ) {
            categorySeries.MarkerType = MarkerType.None;
            categorySeries.Thickness = viewModel.LineThickness > 0 ? viewModel.LineThickness : 1;
            categorySeries.ItemsSource = viewModel.Data;
            categorySeries.Title = viewModel.Name;
            categorySeries.YAxis = yAxis;
            categorySeries.XAxis = xAxis;

            if ( !String.IsNullOrEmpty( viewModel.LineBrush ) ) {
                categorySeries.Brush = GetBrush( viewModel.LineBrush, viewModel.LineBrushType );
            }

            return categorySeries;
        }