示例#1
0
        /// <summary>
        /// Display plot by level
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LevelButton_Click(object sender, RoutedEventArgs e)
        {
            a_isCategoryPlot          = false;
            CategoryButton.FontWeight = FontWeights.Regular;
            LevelButton.FontWeight    = FontWeights.Bold;
            ParseByCategoryAndLevel();
            BarSeriesByLevel barSeriesByLevel = new BarSeriesByLevel(a_levelPlotData);

            MainPlotView.Model = barSeriesByLevel.MyModel;
        }
示例#2
0
 /// <summary>
 /// Refresh plot after data change
 /// </summary>
 private void RefreshPlot()
 {
     if (a_isInitialing == false)
     {
         if (a_isCategoryPlot)
         {
             ParseByCategoryAndLevel();
             ColumnSeriesByCategory columnSeriesByCategory = new ColumnSeriesByCategory(a_categoryPlotData);
             MainPlotView.Model = columnSeriesByCategory.MyModel;
         }
         else
         {
             ParseByCategoryAndLevel();
             BarSeriesByLevel barSeriesByLevel = new BarSeriesByLevel(a_levelPlotData);
             MainPlotView.Model = barSeriesByLevel.MyModel;
         }
     }
 }