示例#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;
        }
        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);
        }