Beispiel #1
0
        NChartCallout CreateCallout(string text, int dataIndex)
        {
            NChartCallout result = new NChartCallout();

            result.Background         = new NChartSolidColorBrush(Color.Argb(255, 255, 255, 255));
            result.Background.Opacity = 0.9;
            result.Padding            = new NChartMargin(10.0f, 10.0f, 10.0f, 10.0f);
            result.BorderColor        = Color.Argb(255, 128, 128, 128);
            result.BorderThickness    = 1;
            result.Font    = new NChartFont(16);
            result.Visible = true;
            result.Text    = text;

            // Force the margin of callout to correspond the median of the corresponding pie sector.
            result.Distance = 100.0f;

            return(result);
        }
        NChartCallout CreateCallout(string text, nint dataIndex)
        {
            NChartCallout result = new NChartCallout();

            result.Background         = new NChartSolidColorBrush(UIColor.White);
            result.Background.Opacity = 0.9f;
            result.Padding            = new NChartMargin(10.0f, 10.0f, 10.0f, 10.0f);
            result.BorderColor        = UIColor.FromRGB(128, 128, 128);
            result.BorderThickness    = 1.0f;
            result.Font    = UIFont.SystemFontOfSize(16.0f);
            result.Visible = true;
            result.Text    = text;

            // Force the margin of callout to correspond the median of the corresponding pie sector.
            result.Distance = 100.0f;

            return(result);
        }