Here are the examples of the csharp api class System.Windows.Forms.DataVisualization.Charting.Chart.Invalidate() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licensepublic void Update ( SortedDictionary<string,double> DataPoints ) { double Max = 10; double Count = 1; this.BarChart.Series.Clear(); foreach( string DataPointKey in DataPoints.Keys ) { string SeriesName = DataPointKey; DataPoint DataPointItem = new DataPoint (); ChartArea Area; this.BarChart.Series.Add( name: SeriesName ); this.BarChart.Series[ SeriesName ].ChartType = SeriesChartType.Column; this.BarChart.Series[ SeriesName ].LegendText = string.Format( "{0}: {1:0.00}", SeriesName, DataPoints[ DataPointKey ] ); DataPointItem.AxisLabel = SeriesName; DataPointItem.SetValueXY( Count, DataPoints[ DataPointKey ] ); this.BarChart.Series[ SeriesName ].Points.Add( item: DataPointItem ); if( DataPoints[ DataPointKey ] > Max ) { Max = DataPoints[ DataPointKey ]; } Area = this.BarChart.ChartAreas[ 0 ]; Area.AxisY.Maximum = Max + 10; Area.AxisY.Minimum = 0; Count++; } this.BarChart.Invalidate(); }
0
2. Example
View licensepublic void Update ( SortedDictionary<string,double> DataPoints ) { const string SeriesName = "Readbility"; Series DataSeries = new Series (); DataSeries.Name = SeriesName; DataSeries.ChartType = SeriesChartType.Pie; this.PieChart.Series.Clear(); this.PieChart.Series.Add( item: DataSeries ); foreach( string DataPointKey in DataPoints.Keys ) { double Value = DataPoints[ DataPointKey ]; DataPoint DataPointItem = DataSeries.Points.Add( Value ); DataPointItem.AxisLabel = string.Format( "{0:0.00}", Value ); DataPointItem.LegendText = string.Format( "{0}: {1:0.00}", DataPointKey, Value ); } this.PieChart.Invalidate(); }