예제 #1
0
        public void SimpleSparkColumn() {
            var chart = new SparkColumn()
                        {
                            Palette = 2,
                            Caption = "Revenue",
                            SubCaption = "12 months",
                            HighColor = "#00CC33".FromHtml(),
                            LowColor = "#CC0000".FromHtml(),
                            SetAdaptiveYMin = true
                        };
            chart.NumberAttr.NumberPrefix = "$";

            for(int i = 0; i < 12; i++)
                chart.AddValue(rnd.NextDouble() * (Max - Min) + Min);

            ValidateChartXml(chart);
        }
예제 #2
0
        private static IChart CreateSparkColumn() {
            var chart = new SparkColumn
                        {
                            Palette = rnd.Next(1, 6),
                            Caption = "Revenue",
                            SubCaption = "12 months",
                            HighColor = "#00CC33".FromHtml(),
                            LowColor = "#CC0000".FromHtml(),
                            SetAdaptiveYMin = true
                        };
            chart.NumberAttr.NumberPrefix = "$";

            for(int i = 0; i < 12; i++)
                chart.AddValue(rnd.NextDouble() * (Max - Min) + Min);

            return chart;
        }
예제 #3
0
        public void SimpleSparkColumn()
        {
            var chart = new SparkColumn()
            {
                Palette         = 2,
                Caption         = "Revenue",
                SubCaption      = "12 months",
                HighColor       = "#00CC33".FromHtml(),
                LowColor        = "#CC0000".FromHtml(),
                SetAdaptiveYMin = true
            };

            chart.NumberAttr.NumberPrefix = "$";

            for (int i = 0; i < 12; i++)
            {
                chart.AddValue(rnd.NextDouble() * (Max - Min) + Min);
            }

            ValidateChartXml(chart);
        }
예제 #4
0
        private static IChart CreateSparkColumn()
        {
            var chart = new SparkColumn
            {
                Palette         = rnd.Next(1, 6),
                Caption         = "Revenue",
                SubCaption      = "12 months",
                HighColor       = "#00CC33".FromHtml(),
                LowColor        = "#CC0000".FromHtml(),
                SetAdaptiveYMin = true
            };

            chart.NumberAttr.NumberPrefix = "$";

            for (int i = 0; i < 12; i++)
            {
                chart.AddValue(rnd.NextDouble() * (Max - Min) + Min);
            }

            return(chart);
        }