The Default Tooltip control, by default any chart that requires a tooltip will create a new instance of this class.
Inheritance: IChartTooltip
        public InvertedSeries()
        {
            InitializeComponent();

            cartesianChart1.Series.Add(new VerticalLineSeries
            {
                Values = new ChartValues<double> { 3, 5, 2, 6, 2, 7, 1 }
            });

            cartesianChart1.Series.Add(new RowSeries
            {
                Values = new ChartValues<double> {6, 2, 6, 3, 2, 7, 2}
            });

            cartesianChart1.AxisY.Add(new Axis
            {
                Separator = new Separator { Step = 1}
            });

            cartesianChart1.AxisX.Add(new Axis
            {
                MinValue = 0
            });

            var tooltip = new DefaultTooltip
            {
                SelectionMode = TooltipSelectionMode.SharedYValues
            };

            cartesianChart1.DataTooltip = tooltip;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DatePicker1 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.DatePicker2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.searchProductInfoBtn = ((System.Windows.Controls.Button)(target));

            #line 100 "..\..\..\..\Views\Product\Product.xaml"
                this.searchProductInfoBtn.Click += new System.Windows.RoutedEventHandler(this.SearchProductInfoBtn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ProductInfo_Page = ((JM_GluingSystem.Common.Css.DataGridPage)(target));
                return;

            case 5:
                this.ProductInfo_DgSource = ((System.Windows.Controls.DataGrid)(target));

            #line 104 "..\..\..\..\Views\Product\Product.xaml"
                this.ProductInfo_DgSource.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.ProductInfo_DgSource_LoadingRow);

            #line default
            #line hidden
                return;

            case 6:
                this.mychart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 7:
                this.myaxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 8:
                this.mytootip = ((LiveCharts.Wpf.DefaultTooltip)(target));
                return;

            case 9:
                this.outputline = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 10:
                this.Qualifiedline = ((LiveCharts.Wpf.LineSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
        private void Example5_Load(object sender, EventArgs e)
        {
            cartesianChart1.Series = new SeriesCollection
            {
                new StackedRowSeries
                {
                    Values = new ChartValues <double> {
                        4, 5, 6, 8
                    },
                    StackMode  = StackMode.Percentage,
                    DataLabels = true,
                    LabelPoint = p => p.X.ToString()
                },
                new StackedRowSeries
                {
                    Values = new ChartValues <double> {
                        2, 5, 6, 7
                    },
                    StackMode  = StackMode.Percentage,
                    DataLabels = true,
                    LabelPoint = p => p.X.ToString()
                }
            };

            //adding series updates and animates the chart
            cartesianChart1.Series.Add(new LiveCharts.Wpf.StackedRowSeries
            {
                Values = new ChartValues <double> {
                    6, 2, 7
                },
                StackMode  = StackMode.Percentage,
                DataLabels = true,
                LabelPoint = p => p.X.ToString()
            });

            //adding values also updates and animates
            cartesianChart1.Series[2].Values.Add(4d);

            cartesianChart1.AxisY.Add(new LiveCharts.Wpf.Axis
            {
                Title  = "Browser",
                Labels = new[] { "Chrome", "Mozilla", "Opera", "IE" }
            });
            cartesianChart1.AxisX.Add(new LiveCharts.Wpf.Axis
            {
                LabelFormatter = val => val.ToString("P")
            });

            var tooltip = new LiveCharts.Wpf.DefaultTooltip {
                SelectionMode = TooltipSelectionMode.SharedYValues
            };

            cartesianChart1.DataTooltip = tooltip;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CanvasContainer = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.CurrentTooltip = ((LiveCharts.Wpf.DefaultTooltip)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public BasicsStackedRowExample()
        {
            InitializeComponent();

            cartesianChart1.Series = new SeriesCollection
            {
                new StackedRowSeries
                {
                    Values = new ChartValues<double> {4, 5, 6, 8},
                    StackMode = StackMode.Percentage,
                    DataLabels = true,
                    LabelPoint = p => p.X.ToString()
                },
                new StackedRowSeries
                {
                    Values = new ChartValues<double> {2, 5, 6, 7},
                    StackMode = StackMode.Percentage,
                    DataLabels = true,
                    LabelPoint = p => p.X.ToString()
                }
            };

            //adding series updates and animates the chart
            cartesianChart1.Series.Add(new StackedRowSeries
            {
                Values = new ChartValues<double> { 6, 2, 7 },
                StackMode = StackMode.Percentage,
                DataLabels = true,
                LabelPoint = p => p.X.ToString()
            });

            //adding values also updates and animates
            cartesianChart1.Series[2].Values.Add(4d);

            cartesianChart1.AxisY.Add(new Axis
            {
                Title = "Browser",
                Labels = new[] {"Chrome", "Mozilla", "Opera", "IE"}
            });
            cartesianChart1.AxisX.Add(new Axis
            {
                LabelFormatter = val => val.ToString("P")
            });

            var tooltip = new DefaultTooltip {SelectionMode = TooltipSelectionMode.SharedYValues};

            cartesianChart1.DataTooltip = tooltip;
        }
        public NegativeStackedRow()
        {
            InitializeComponent();

            cartesianChart1.Series  = new SeriesCollection
            {
                new StackedRowSeries
                {
                    Title = "Male",
                    Values = new ChartValues<double> {.5, .7, .8, .8, .6, .2, .6}
                },
                new StackedRowSeries
                {
                    Title = "Female",
                    Values = new ChartValues<double> {-.5, -.7, -.8, -.8, -.6, -.2, -.6}
                }
            };

            cartesianChart1.AxisX.Add(new Axis
            {
                Title = "Age Range",
                Labels = new[] {"0-20", "20-35", "35-45", "45-55", "55-65", "65-70", ">70"}
            });

            cartesianChart1.AxisY.Add(new Axis
            {
                LabelFormatter = value => Math.Abs(value).ToString("P")
            });

            var tooltip = new DefaultTooltip
            {
                SelectionMode = TooltipSelectionMode.SharedYValues
            };

            cartesianChart1.DataTooltip = tooltip;
        }
Esempio n. 7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DatePicker1 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.DatePicker2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.SearchWorkInfoBtn = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\..\..\Views\Check\Check.xaml"
                this.SearchWorkInfoBtn.Click += new System.Windows.RoutedEventHandler(this.SearchWorkInfoBtn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.CheckInfo_Page = ((JM_GluingSystem.Common.Css.DataGridPage)(target));
                return;

            case 5:
                this.testDetailsInfo = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\..\..\Views\Check\Check.xaml"
                this.testDetailsInfo.Click += new System.Windows.RoutedEventHandler(this.TestDetailsInfoBtn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.CheckInfo_DgSource = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 7:
                this.mychart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 8:
                this.myaxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 9:
                this.mytootip = ((LiveCharts.Wpf.DefaultTooltip)(target));
                return;

            case 10:
                this.BuckleDislocation_LeftAndRightLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 11:
                this.BuckleDislocation_TopAndBottomLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 12:
                this.RightFitLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 13:
                this.WideTemplateLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 14:
                this.WireResidualLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 15:
                this.MeltThroughLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 16:
                this.SolderJointOversizeLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 17:
                this.WeldJointOversizeLine = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 18:
                this.borderBody = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }