コード例 #1
0
        public GraphDemo()
        {
            InitializeComponent();

            gtr = new Graph <int>(false);

            var chart = new HGChartCtrl
            {
                Height           = 400,
                DataSource       = _mainData,
                SpaceBetweenBars = 1,
                ShowAxisLabel    = false,
                ShowValueOnBar   = false,
                SmartAxisLabel   = true,
                TextColor        = Brushes.Yellow,
            };

            StPanelMain.Children.Add(chart);
        }
コード例 #2
0
        public VisualSortingDemo()
        {
            InitializeComponent();
            backgroundWorker.DoWork             += backgroundWorker_DoWork;
            backgroundWorker.RunWorkerCompleted += backgroundWorker_RunWorkerCompleted;
            backgroundWorker.ProgressChanged    += backgroundWorker_ProgressChanged;

            chart = new HGChartCtrl
            {
                Height           = 300,
                DataSource       = _mainData,
                SpaceBetweenBars = 1,
                ShowAxisLabel    = false,
                ShowValueOnBar   = false,
                SmartAxisLabel   = true,
                TextColor        = Brushes.Yellow,
            };
            StPanelMain.Children.Add(chart);
        }
コード例 #3
0
        public HGChartControlDemo()
        {
            InitializeComponent();

            for (var i = 5; i > 0; i--)
            {
                var chrt = new HGChartCtrl
                {
                    Height           = 50,
                    DataSource       = _mainData,
                    SpaceBetweenBars = 1,
                    ShowAxisLabel    = false,
                    ShowValueOnBar   = false,
                    SmartAxisLabel   = true,
                    TextColor        = Brushes.Yellow,
                    ChartingMethod   = i
                };
                StPanelMain.Children.Add(chrt);
                hgc.Add(chrt);
            }
        }