Ejemplo n.º 1
0
            public override SChartSeries GetSeries(ShinobiChart chart, int dataSeriesIndex)
            {
                SChartColumnSeries series = new SChartColumnSeries();

                series.StackIndex = 0;
                if (dataSeriesIndex == 0)
                {
                    series.Title = "Non-owner";
                }
                else
                {
                    series.Title = "Owner";
                }
                return(series);
            }
Ejemplo n.º 2
0
        public override SChartSeries GetSeries(ShinobiChart chart, nint dataSeriesIndex)
        {
            string year = sales [(int)dataSeriesIndex].Item1;
            SChartColumnSeries columnSeries = new SChartColumnSeries {
                Title = year,
                SelectionMode = SChartSelection.Series
            };
            columnSeries.Style.ShowAreaWithGradient = false;
            columnSeries.SelectedStyle.ShowAreaWithGradient = false;
            columnSeries.SelectedStyle.AreaColor = UIColor.Red;
            columnSeries.SelectedStyle.LineWidth = 0;

            // Set the selected state of the line series - this reflects the initial UI state
            columnSeries.Selected = year == DisplayYear;
            return columnSeries;
        }
        public override SChartSeries GetSeries(ShinobiChart chart, nint dataSeriesIndex)
        {
            SChartColumnSeries series = new SChartColumnSeries ();

            // Display labels
            series.Style.DataPointLabelStyle.ShowLabels = true;

            // Position labels
            series.Style.DataPointLabelStyle.OffsetFromDataPoint = new CGPoint (0, -15);
            series.Style.DataPointLabelStyle.OffsetFlippedForNegativeValues = true;

            // Style labels
            series.Style.DataPointLabelStyle.TextColor = UIColor.Black;
            series.Style.DataPointLabelStyle.DisplayValues = SChartDataPointLabelDisplayValues.Y;

            return series;
        }