private void openBtn_Click(object sender, RoutedEventArgs e)
        {

            if (!Archive.ImportFromFileTo(_measurements))
            {
                mainChart.Visibility = Visibility.Hidden;
                measurementSelect.IsEnabled = false;
                return;
            }


            archiveInfoNameBox.Text = _measurements.AppName;
            archiveInfoDateBox.Text = _measurements.ArchCreateDate.ToShortDateString();
            archiveInfoVersionBox.Text = _measurements.AppVersion;

            measurementSelect.ItemsSource = _measurements.MeasurementsName;
            measurementSelect.IsEnabled = true;

            Axis prim = new Axis();
            prim.Title = "Temperatura [°C]";

            Axis sec = new Axis();
            sec.Title = "Godzina";
            sec.Labels = _measurements.SecondAxisDate;

            _measurements.UpdateItems(0);

            mainChart.PrimaryAxis = prim;
            mainChart.SecondaryAxis = sec;
            mainChart.ClearAndPlot();
            CheckIsEmpty();
        }
Ejemplo n.º 2
0
 public RadarChart()
 {
     AxisY = new Axis();
     AxisX = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Dot;
     AlphaLabel = true;
     MinInnerRadius = 10;
 }
Ejemplo n.º 3
0
 public BarChart()
 {
     AxisY = new Axis();
     AxisX = new Axis {Separator = new Separator {Step = 1}};
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     MaxColumnWidth = 60;
     DefaultFillOpacity = 0.75;
     LineSmoothness = 0.8;
 }
Ejemplo n.º 4
0
 public BarChart()
 {
     AxisY = new Axis();
     AxisX = new Axis {Separator = new Separator {Step = 1}};
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     LineType = LineChartLineType.Bezier;
     MaxColumnWidth = 30;
     DefaultFillOpacity = 0.75;
 }
Ejemplo n.º 5
0
 public RadarChart()
 {
     PrimaryAxis = new Axis();
     SecondaryAxis = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Dot;
     AlphaLabel = true;
     AreaOpacity = .2;
     InnerRadius = 10;
 }
Ejemplo n.º 6
0
 public ScatterChart()
 {
     PrimaryAxis = new Axis();
     SecondaryAxis = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Dot;
     AnimatesNewPoints = true;
     AreaOpacity = 0.2;
     LineType = LineChartLineType.Bezier;
     DataToolTip = new DefaultScatterTooltip();
 }
Ejemplo n.º 7
0
 public StackedBarChart()
 {
     AxisY = new Axis();
     AxisX = new Axis {Separator = new Separator {Step = 1}};
     Hoverable = true;
     AxisY.MinValue = 0d;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     LineType = LineChartLineType.Bezier;
     IndexTotals = new Dictionary<int, StackedBarHelper>();
     MaxColumnWidth = 40;
     DefaultFillOpacity = 0.75;
 }
Ejemplo n.º 8
0
        public ScatterChart()
        {
            AxisY = new Axis();
            AxisX = new Axis();
            Hoverable = true;
            ShapeHoverBehavior = ShapeHoverBehavior.Dot;
            LineType = LineChartLineType.Bezier;
            DataToolTip = new DefaultScatterTooltip();

            var defaultConfig = new SeriesConfiguration<Point>().X(pt => pt.X).Y(pt => pt.Y);
            SetCurrentValue(SeriesProperty, new SeriesCollection(defaultConfig));
        }
Ejemplo n.º 9
0
 public PieChart()
 {
     AxisY = new Axis {FontWeight = FontWeights.Bold, FontSize = 11, FontFamily = new FontFamily("Calibri")};
     AxisX = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     InnerRadius = 0;
     SlicePadding = 5;
     DrawPadding = 20;
     AnimatesNewPoints = true;
     SupportsMultipleSeries = false;
 }
Ejemplo n.º 10
0
 public PieChart()
 {
     AxisY = new Axis {FontWeight = FontWeights.Bold, FontSize = 11, FontFamily = new FontFamily("Calibri")};
     AxisX = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     InnerRadius = 0;
     SlicePadding = 5;
     DrawPadding = 20;
     Background = Brushes.White;
     AnimatesNewPoints = true;
 }
Ejemplo n.º 11
0
 public LineChart()
 {
     AxisY = new Axis();
     AxisX = new Axis
     {
         Separator = new Separator {IsEnabled = false, Step = 1},
         IsEnabled = false
     };
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Dot;
     LineSmoothness = 0.8;
 }
Ejemplo n.º 12
0
		public LineChart()
		{
			PrimaryAxis = new Axis();
		    SecondaryAxis = new Axis
		    {
		        Separator = {Enabled = false, Step = 1},
		        IsEnabled = false
		    };
			LineType = LineChartLineType.Bezier;
			Hoverable = true;
			ShapeHoverBehavior = ShapeHoverBehavior.Dot;
		    AreaOpacity = 0.2;
		}
Ejemplo n.º 13
0
        public LineChart()
        {
            AxisY = new Axis();
            AxisX = new Axis
            {
                Separator = new Separator {IsEnabled = false, Step = 1},
                IsEnabled = false
            };

            LineType = LineChartLineType.Bezier;
            Hoverable = true;
            ShapeHoverBehavior = ShapeHoverBehavior.Dot;
        }
Ejemplo n.º 14
0
 public StackedBarChart()
 {
     PrimaryAxis = new Axis();
     SecondaryAxis = new Axis {Separator = new Separator {Step = 1}};
     Hoverable = true;
     PrimaryAxis.MinValue = 0d;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     IgnoresLastLabel = true;
     PerformanceConfiguration = new PerformanceConfiguration { Enabled = false };
     AreaOpacity = 0.8;
     LineType = LineChartLineType.Bezier;
     IndexTotals = new Dictionary<int, StackedBarHelper>();
     MaxColumnWidth = 60;
 }
Ejemplo n.º 15
0
        public PieChart()
        {
            PrimaryAxis = new Axis { FontWeight = FontWeights.Bold, FontSize = 11, FontFamily = new FontFamily("Calibri")};
            SecondaryAxis = new Axis();
            Hoverable = true;
            ShapeHoverBehavior = ShapeHoverBehavior.Shape;
            InnerRadius = 0;
            SlicePadding = 5;
            DrawPadding = 20;
            Background = Brushes.White;
            AnimatesNewPoints = true;
            AreaOpacity = 1;

            PerformanceConfiguration = new PerformanceConfiguration { Enabled = false };
        }
Ejemplo n.º 16
0
 public BarChart()
 {
     PrimaryAxis = new Axis();
     SecondaryAxis = new Axis {Separator = new Separator {Step = 1}};
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Shape;
     IgnoresLastLabel = true;
     AreaOpacity = .8;
     LineType = LineChartLineType.Bezier;
     MaxColumnWidth = 60;
     //no performance config for a bar chart
     //why? because this chart need to build a bar per point,
     //I think there is no practicall way to make this work
     //It is better if final develover groups some of their points.
     PerformanceConfiguration = new PerformanceConfiguration {Enabled = false};
 }