예제 #1
0
        public StartControl()
        {
            InitializeComponent();

            // Add self-updating chart to the sales tile
            MicroChartItem chart = new MicroChartItem();

            chart.ChartType   = eMicroChartType.Column;
            chart.ChartWidth  = reporteItem.TileSize.Width - 26;
            chart.ChartHeight = reporteItem.TileSize.Height - 30;
            chart.DataPoints  = GetRandomDataPoints(false, 12);
            chart.TooltipValueFormatString          = "C"; // Currency format for tooltips
            chart.ColumnChartStyle.PositiveBarColor = Color.White;
            reporteItem.SubItems.Add(chart);
        }
예제 #2
0
        public StartControl(DataTable Datos)
        {
            this.Datos = Datos;
            InitializeComponent();

            // Add self-updating chart to the sales tile
            MicroChartItem chart = new MicroChartItem();

            chart.ChartType   = eMicroChartType.Column;
            chart.ChartWidth  = reporteItem.TileSize.Width - 26;
            chart.ChartHeight = reporteItem.TileSize.Height - 30;
            chart.DataPoints  = GetRandomDataPoints(false, 12);
            chart.TooltipValueFormatString          = "C"; // Currency format for tooltips
            chart.ColumnChartStyle.PositiveBarColor = Color.White;
            reporteItem.SubItems.Add(chart);
            lb_user.Text = "<div align='right'><font size='+4'>" + Datos.Rows[0]["nombre"] + "</font><br/>" + Datos.Rows[0]["tipo"] + "</div>";
        }
예제 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            microChart1.DataPoints = GetRandomDataPoints();
            microChart2.DataPoints = GetRandomDataPoints();
            microChart3.DataPoints = GetRandomDataPoints();
            microChart4.DataPoints = GetRandomDataPoints();
            microChart5.DataPoints = GetRandomDataPoints();
            microChart6.DataPoints = GetRandomDataPoints();
            microChart7.DataPoints = GetRandomDataPoints();
            microChart8.DataPoints = GetRandomDataPoints();

            // Add new micro-chart to a node3
            Cell           cell       = new Cell();
            MicroChartItem microChart = new MicroChartItem();

            microChart.ChartType  = eMicroChartType.Column;
            microChart.ChartWidth = 64;
            microChart.DataPoints = GetRandomDataPoints();
            cell.HostedItem       = microChart;
            node3.Cells.Add(cell);
        }