Bullet Graph
Inheritance: GaugeBase
Example #1
0
        private static BulletGraph CreateBulletGraph() {
            var chart = new BulletGraph
                        {
                            Caption = "Revenue",
                            SubCaption = "US $ (1,000s)"
                        };

            chart.Axis.LowerLimit = 0;
            chart.Axis.UpperLimit = 100;
            // chart.AxisAttr.LowerLimitDisplay = "Bad";
            // chart.AxisAttr.UpperLimitDisplay = "Good";

            chart.Palette = 4;
            chart.ShowValue = true;
            chart.NumberAttr.NumberPrefix = "$";
            chart.NumberAttr.NumberSuffix = "K";

            chart.PlotFillColor = "#CC0000".FromHtml();
            chart.PlotFillAlpha = 90;
            chart.TargetColor = chart.PlotFillColor;
            chart.TargetThickness = 4;

            chart.DataStreamUrl = "BulletRealTime.ashx";
            chart.RefreshInterval = 3;

            chart.Value = 78.9;
            chart.Target = 80;

            BuildColorRange(chart);
            return chart;
        }
Example #2
0
        public void SampleBulletTest() {
            var chart = new BulletGraph();

            chart.Palette = 3;
            chart.Axis.LowerLimit = 0;
            chart.Axis.UpperLimit = 100;
            chart.Caption = "Revenue";
            chart.SubCaption = "US $ (1,000s)";

            chart.NumberAttr.NumberPrefix = "$";
            chart.NumberAttr.NumberSuffix = "K";
            chart.ShowValue = true;

            chart.Value = 78.3;
            chart.Target = 90;

            BuildColorRange(chart);

            ValidateChartXml(chart);
        }
Example #3
0
        public void SampleBulletTest()
        {
            var chart = new BulletGraph();

            chart.Palette         = 3;
            chart.Axis.LowerLimit = 0;
            chart.Axis.UpperLimit = 100;
            chart.Caption         = "Revenue";
            chart.SubCaption      = "US $ (1,000s)";

            chart.NumberAttr.NumberPrefix = "$";
            chart.NumberAttr.NumberSuffix = "K";
            chart.ShowValue = true;

            chart.Value  = 78.3;
            chart.Target = 90;

            BuildColorRange(chart);

            ValidateChartXml(chart);
        }