6 |
7 | A data source can be queried, and series of data can be added to the chart for
8 | all or some of the returned records.
9 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/Sorting/Sorting/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Use point index for drawing the chart
5 | Chart1.Series("Series1").IsXValueIndexed = True
6 |
7 | ' Sort series' points by second Y value
8 | Chart1.DataManipulator.Sort(PointSortOrder.Ascending, "Y2", "Series1")
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/CursorInterval/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set cursor interval properties
5 | Chart1.ChartAreas("Default").CursorX.Interval = 1
6 | Chart1.ChartAreas("Default").CursorX.IntervalType = DateTimeIntervalType.Days
7 | Chart1.ChartAreas("Default").CursorY.Interval = 2
8 |
9 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/ZoomingScrolling/SmallScrollSize/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Use automatic small scrolling size, with minimum of 2
5 | chart1.ChartAreas["Default"].AxisX.ScaleView.SmallScrollSize = double.NaN;
6 | chart1.ChartAreas["Default"].AxisX.ScaleView.SmallScrollMinSize = 2;
7 |
8 | ...
9 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/Sorting/Sorting/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Use point index for drawing the chart
5 | chart1.Series["Series1"].IsXValueIndexed = true;
6 |
7 | // Sort series' points by second Y value
8 | chart1.DataManipulator.Sort(PointSortOrder.Ascending, "Y2", "Series1");
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/CursorInterval/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set cursor interval properties
5 | chart1.ChartAreas["Default"].CursorX.Interval = 1;
6 | chart1.ChartAreas["Default"].CursorX.IntervalType = DateTimeIntervalType.Days;
7 | chart1.ChartAreas["Default"].CursorY.Interval = 2;
8 |
9 | ...
10 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Palettes/vbcode.txt:
--------------------------------------------------------------------------------
1 |
2 | Imports System.Windows.Forms.DataVisualization.Charting
3 | ...
4 |
5 | ' Standard palette
6 | chart2.Palette = ChartColorPalette.BrightPastel
7 |
8 | ' Use a custom palette
9 | Dim colorSet(4) As Color = {Color.Red, Color.Blue, Color.Green, Color.Purple }
10 | chart2.PaletteCustomColors = colorSet
11 | chart2.Palette = ChartColorPalette.None
12 |
--------------------------------------------------------------------------------
/src/data/data.xsx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/SecondaryAxis/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set series axis type
5 | Chart1.Series("Series 1").XAxisType = AxisType.Primary
6 | Chart1.Series("Series 1").YAxisType = AxisType.Secondary
7 | Chart1.Series("Series 2").XAxisType = AxisType.Secondary
8 | Chart1.Series("Series 2").YAxisType = AxisType.Primary
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/MultipleLegends/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Add the second legend
5 | Chart1.Legends.Add(New Legend("Second"))
6 |
7 | ' Associate the last three series to the new legend
8 | Chart1.Series("Series 3").Legend = "Second"
9 | Chart1.Series("Series 4").Legend = "Second"
10 | Chart1.Series("Series 5").Legend = "Second"
11 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Palettes/cscode.txt:
--------------------------------------------------------------------------------
1 |
2 | using System.Windows.Forms.DataVisualization.Charting
3 | ...
4 |
5 | // Standard palette
6 | chart2.Palette = ChartColorPalette.BrightPastel;
7 |
8 | // Use a custom palette
9 | Color[] colorSet = new Color[4] { Color.Red, Color.Blue, Color.Green, Color.Purple };
10 | chart2.PaletteCustomColors = colorSet;
11 | chart2.Palette = ChartColorPalette.None;
12 |
--------------------------------------------------------------------------------
/src/ChartTypes/BarColumnCharts/3DCylinder/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set Bar chart type
5 | Chart1.Series("Default").ChartType = SeriesChartType.Bar
6 |
7 | ' Enable 3D charts
8 | Chart1.ChartAreas("Default").Area3DStyle.Enable3D = true
9 |
10 | ' Set Cylinder drawing style
11 | Chart1.Series("Default")("DrawingStyle") = "Cylinder"
12 | ...
13 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AxisVarLabelsInterval/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set interval of X axis to zero, which represents an "Auto" value.
5 | chart1.ChartAreas("Default").AxisX.Interval = 0
6 |
7 | ' Use variable count algorithm to generate labels.
8 | chart1.ChartAreas("Default").AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/MultipleLegends/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Add the second legend
5 | Chart1.Legends.Add(new Legend("Second"));
6 |
7 | // Associate the last three series to the new legend
8 | Chart1.Series["Series 3"].Legend = "Second";
9 | Chart1.Series["Series 4"].Legend = "Second";
10 | Chart1.Series["Series 5"].Legend = "Second";
11 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/BarColumnCharts/3DCylinder/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Bar chart type
5 | Chart1.Series["Default"].ChartType = SeriesChartType.Bar;
6 |
7 | // Enable 3D charts
8 | Chart1.ChartAreas["Default"].Area3DStyle.Enable3D = true;
9 |
10 | // Set Cylinder drawing style
11 | Chart1.Series["Default"]["DrawingStyle"] = "Cylinder";
12 | ...
13 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/SecondaryAxis/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set series axis type
5 | chart1.Series["Series 1"].XAxisType = AxisType.Primary;
6 | chart1.Series["Series 1"].YAxisType = AxisType.Secondary;
7 | chart1.Series["Series 2"].XAxisType = AxisType.Secondary;
8 | chart1.Series["Series 2"].YAxisType = AxisType.Primary;
9 |
10 | ...
11 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AxisVarLabelsInterval/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set interval of X axis to zero, which represents an "Auto" value.
5 | chart1.ChartAreas["Default"].AxisX.Interval = 0;
6 |
7 | // Use variable count algorithm to generate labels.
8 | chart1.ChartAreas["Default"].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount;
9 |
10 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/TOCNodes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Finding Series Points
6 |
7 |
8 |
9 | Sorting
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/CovarianceAndCorrelation/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Calculate Covariance
5 | double covariance = chart1.DataManipulator.Statistics.Covariance( "FirstGroup", "SecondGroup" );
6 |
7 | // Calculate Correlation
8 | double correlation = chart1.DataManipulator.Statistics.Correlation( "FirstGroup", "SecondGroup" );
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Axis Title/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set axis title
5 | chart1.ChartAreas["Default"].AxisX.Title = "Chart Axis";
6 |
7 | // Set Title font
8 | chart1.ChartAreas["Default"].AxisX.TitleFont = new Font("Times New Roman",12, FontStyle.Bold);
9 |
10 | // Set Title color
11 | chart1.ChartAreas["Default"].AxisX.TitleForeColor = Color.Red;
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Axis Title/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set axis title
5 | Chart1.ChartAreas("Default").AxisX.Title = "Chart Axis"
6 |
7 | ' Set Title font
8 | Chart1.ChartAreas("Default").AxisX.TitleFont = New Font("Times New Roman", 12, FontStyle.Bold)
9 |
10 | ' Set Title color
11 | Chart1.ChartAreas("Default").AxisX.TitleForeColor = Color.Red
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/RangeCharts/RangeColumn/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set range column chart type
5 | Chart1.Series("Series1").ChartType = SeriesChartType.RangeColumn
6 |
7 | ' Set the side-by-side drawing style
8 | Chart1.Series("Series1")("DrawSideBySide") = "false"
9 |
10 | ' Set Cylinder drawing style
11 | chart1.Series("Series1")("DrawingStyle") = "Cylinder"
12 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/CovarianceAndCorrelation/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Calculate Covariance
5 | Dim covariance As Double = chart1.DataManipulator.Statistics.Covariance("FirstGroup", "SecondGroup")
6 |
7 | ' Calculate Correlation
8 | Dim correlation As Double = chart1.DataManipulator.Statistics.Correlation("FirstGroup", "SecondGroup")
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/RangeCharts/RangeColumn/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set range column chart type
5 | chart1.Series["Series1"].ChartType = SeriesChartType.RangeColumn;
6 |
7 | // Set the side-by-side drawing style
8 | chart1.Series["Series1"]["DrawSideBySide"] = "false";
9 |
10 | // Set Cylinder drawing style
11 | chart1.Series["Series1"]["DrawingStyle"] = "Cylinder";
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsKeywords/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set axis labels
5 | Chart1.Series["Series1"].AxisLabel = "Month: #VALX{MMM}\nDay: #VALX{dd}";
6 |
7 | // Set series point's labels. On the first line we display
8 | // the first Y value, and on the second line we display the X value.
9 | Chart1.Series["Series1"].Label = "Y = #VALY\nX = #VALX";
10 |
11 | ...
12 |
--------------------------------------------------------------------------------
/src/ChartTypes/CombinationalCharts/Combinatorial/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set series chart types
5 | chart1.Series["Series1"].ChartType = SeriesChartType.Column;
6 | chart1.Series["Series2"].ChartType = SeriesChartType.Spline;
7 | chart1.Series["Series3"].ChartType = SeriesChartType.Point;
8 |
9 | // Set to 3D
10 | chart1.ChartAreas["Default"].Area3DStyle.Enable3D=true;
11 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/CombinationalCharts/Combinatorial/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set series chart types
5 | Chart1.Series("Series1").ChartType = SeriesChartType.Column
6 | Chart1.Series("Series2").ChartType = SeriesChartType.Spline;
7 | Chart1.Series("Series3").ChartType = SeriesChartType.Point
8 |
9 | ' Set to 3D
10 | Chart1.ChartAreas("Default").Area3DStyle.Enable3D = True
11 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Logarithmic Scale/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set Logarithmic scale
5 | chart1.ChartAreas("Default").AxisY.IsLogarithmic = True
6 |
7 | ' Set logarithmic base
8 | chart1.ChartAreas(0).AxisY.LogarithmBase = Math.E
9 |
10 | ' Set Minor interval
11 | chart1.ChartAreas(0).AxisY.MinorGrid.Interval = 0
12 | chart1.ChartAreas(0).AxisY.MinorTickMark.Interval = 0
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/Series and Chart Areas/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Attach the first series to a chart area.
5 | Chart1.Series("Series1").ChartArea = "Default"
6 |
7 | ' Attach the second series to a chart area.
8 | Chart1.Series("Series2").ChartArea = "Chart Area 2"
9 |
10 | ' Remove series from chart areas.
11 | Chart1.Series("Series3").ChartArea = ""
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/Series and Chart Areas/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Attach the first series to a chart area.
5 | chart1.Series["Series1"].ChartArea = "Default";
6 |
7 | // Attach the second series to a chart area.
8 | chart1.Series["Series2"].ChartArea = "Chart Area 2";
9 |
10 | // Remove series from chart areas.
11 | chart1.Series["Series3"].ChartArea = "";
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AutoFitAxesLabels/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Enable X axis labels automatic fitting
5 | Chart1.ChartAreas("Default").AxisX.IsLabelAutoFit = True
6 |
7 | ' Set X axis automatic fitting style
8 | Chart1.ChartAreas("Default").AxisX.LabelAutoFitStyle =
9 | LabelAutoFitStyle.DecreaseFont Or LabelAutoFitStyle.IncreaseFont Or LabelAutoFitStyle.WordWrap
10 |
11 | ...
12 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/DatabaseDataview/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | The X and Y values of a data series can be bound to data sources using
6 | the DataBindXY method.
7 |
8 | Since a DataView object implements the IEnumerable interface, the object can be
9 | passed directly into the method call.
10 |
11 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Annotations/AnnotationAppearance/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | Chart1.Annotations(0).LineWidth = 3
5 | Chart1.Annotations(0).LineDashStyle = ChartDashStyle.Dash
6 | Chart1.Annotations(0).LineColor = Color.Gainsboro
7 | Chart1.Annotations(0).Font = New Font("Tahoma", 10)
8 | Chart1.Annotations(0).ForeColor = Color.Black
9 | Chart1.Annotations(0).BackColor = Color.PaleYellow
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Logarithmic Scale/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Logarithmic scale
5 | chart1.ChartAreas["Default"].AxisY.IsLogarithmic = true;
6 |
7 | // Set logarithmic base
8 | chart1.ChartAreas[0].AxisY.LogarithmBase = Math.E;
9 |
10 | // Set Minor interval
11 | chart1.ChartAreas[0].AxisY.MinorGrid.Interval = 0;
12 | chart1.ChartAreas[0].AxisY.MinorTickMark.Interval = 0;
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AutoFitAxesLabels/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Enable X axis labels automatic fitting
5 | Chart1.ChartAreas["Default"].AxisX.IsLabelAutoFit = true;
6 |
7 | // Set X axis automatic fitting style
8 | Chart1.ChartAreas["Default"].AxisX.LabelAutoFitStyle =
9 | LabelAutoFitStyle.DecreaseFont | LabelAutoFitStyle.IncreaseFont | LabelAutoFitStyle.WordWrap;
10 |
11 | ...
12 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/MultilineLabels/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Show data points values as labels
5 | chart1.Series["Series1"].IsValueShownAsLabel = true;
6 |
7 | // Set axis label
8 | chart1.Series["Series1"].Points[2].AxisLabel = "My Axis Label\nLabel Line #2";
9 |
10 | // Set data point label
11 | chart1.Series["Series1"].Points[2].Label = "My Point Label\nLabel Line #2";
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/Templates/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | If comboBoxTemplate.Text = "None" Then
5 | ' Reset chart appearance
6 | chart1.Serializer.Content = SerializationContents.Appearance
7 | chart1.Serializer.Reset()
8 | Else
9 | ' Load appearance template
10 | chart1.Serializer.IsResetWhenLoading = False
11 | chart1.LoadTemplate("MyTemplate.xml")
12 | End If
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Annotations/AnnotationAppearance/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | Chart1.Annotations[0].LineWidth = 3;
5 | Chart1.Annotations[0].LineDashStyle = ChartDashStyle.Dash;
6 | Chart1.Annotations[0].LineColor = Color.Gainsboro;
7 | Chart1.Annotations[0].Font = new Font("Tahoma", 10);
8 | Chart1.Annotations[0].ForeColor = Color.Black;
9 | Chart1.Annotations[0].BackColor = Color.PaleYellow;
10 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/ArrayBinding/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Initialize an array of doubles
5 | double [] yval = { 2,6,4,5,3};
6 |
7 | // Initialize an array of string
8 | string [] xval = { "Peter", "Andrew", "Julie", "Mary", "Dave"};
9 |
10 | // Bind the double array to the Y axis points of the Default data series
11 | chart1.Series["Series 1"].Points.DataBindXY(xval,yval);
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/ZoomScrollAuto/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set automatic zooming
5 | Chart1.ChartAreas("Default").AxisX.ScaleView.Zoomable = true
6 | Chart1.ChartAreas("Default").AxisY.ScaleView.Zoomable = true
7 |
8 | ' Set automatic scrolling
9 | Chart1.ChartAreas("Default").CursorX.AutoScroll = true
10 | Chart1.ChartAreas("Default").CursorY.AutoScroll = true
11 |
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/Templates/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | if(comboBoxTemplate.Text == "None")
5 | {
6 | // Reset chart appearance
7 | chart1.Serializer.Content = SerializationContents.Appearance;
8 | chart1.Serializer.Reset();
9 | }
10 | else
11 | {
12 | // Load appearance template
13 | chart1.Serializer.IsResetWhenLoading = false;
14 | chart1.LoadTemplate("MyTemplate.xml");
15 | }
16 | ...
17 |
--------------------------------------------------------------------------------
/src/ChartOverview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Overview
6 |
7 | Overview of Samples Environment
8 | None
9 |
10 |
11 | Overview.htm
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/ZoomScrollAuto/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set automatic zooming
5 | chart1.ChartAreas["Default"].AxisX.ScaleView.Zoomable = true;
6 | chart1.ChartAreas["Default"].AxisY.ScaleView.Zoomable = true;
7 |
8 | // Set automatic scrolling
9 | chart1.ChartAreas["Default"].CursorX.AutoScroll = true;
10 | chart1.ChartAreas["Default"].CursorY.AutoScroll = true;
11 |
12 | ...
13 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/ArrayBinding/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Initialize an array of doubles
5 | Dim yval As Double() = {2, 6, 4, 5, 3}
6 |
7 | ' Initialize an array of string
8 | Dim xval As String() = {"Peter", "Andrew", "Julie", "Mary", "Dave"}
9 |
10 | ' Bind the double array to the Y axis points of the Default data series
11 | Chart1.Series("Series 1").Points.DataBindXY(xval, yval)
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AxisLabelsInterval/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set interval of X axis to 1 week, with an offset of 1 day
5 | chart1.ChartAreas["Default"].AxisX.Interval = 1;
6 | chart1.ChartAreas["Default"].AxisX.IntervalType = DateTimeIntervalType.Weeks;
7 | chart1.ChartAreas["Default"].AxisX.IntervalOffset = 1;
8 | chart1.ChartAreas["Default"].AxisX.IntervalOffsetType = DateTimeIntervalType.Days;
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/AxisLabelsInterval/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set interval of X axis to 1 week, with an offset of 1 day
5 | chart1.ChartAreas("Default").AxisX.Interval = 1
6 | chart1.ChartAreas("Default").AxisX.IntervalType = DateTimeIntervalType.Weeks
7 | chart1.ChartAreas("Default").AxisX.IntervalOffset = 1
8 | chart1.ChartAreas("Default").AxisX.IntervalOffsetType = DateTimeIntervalType.Days
9 |
10 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsKeywords/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set axis labels
5 | Chart1.Series("Series1").AxisLabel = "Month: #VALX{MMM}" + ControlChars.Lf + "Day: #VALX{dd}"
6 |
7 | ' Set series point's labels. On the first line we display
8 | ' the first Y value, and on the second line we display the X value.
9 | Chart1.Series("Series1").Label = "Y = #VALY" + ControlChars.Lf + "X = #VALX"
10 |
11 | ...
12 |
--------------------------------------------------------------------------------
/src/ChartTypes/LineCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Line Chart Gallery
8 | None
9 |
10 | LineGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/MultilineLabels/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Show data points values as labels
5 | Chart1.Series("Series1").IsValueShownAsLabel = True
6 |
7 | ' Set axis label
8 | Chart1.Series("Series1").Points(2).AxisLabel = "My Axis Label" + ControlChars.Lf + "Label Line #2"
9 |
10 | ' Set data point label
11 | Chart1.Series("Series1").Points(2).Label = "My Point Label" + ControlChars.Lf + "Label Line #2"
12 |
13 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/AreaCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Area Chart Gallery
8 | None
9 |
10 | AreaGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartTypes/RangeCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Range Chart Gallery
8 | None
9 |
10 | RangeGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingPerspectives/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Enable 3D charts
5 | chart1.ChartAreas("Default").Area3DStyle.Enable3D = true
6 |
7 | ' Show a 30% perspective
8 | chart1.ChartAreas("Default").Area3DStyle.Perspective = 30
9 |
10 | ' Set the X Angle to 30
11 | chart1.ChartAreas("Default").Area3DStyle.Rotation = 30
12 |
13 | ' Set the Y Angle to 40
14 | chart1.ChartAreas("Default").Area3DStyle.Rotation = 40
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/CircularCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Circular Chart Gallery
8 | None
9 |
10 | CircularGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/ChartTypes/LineCharts/FastLine/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Fill series data
5 | double yValue = 50.0;
6 | Random random = new Random();
7 | for(int pointIndex = 0; pointIndex < 20000; pointIndex ++)
8 | {
9 | yValue = yValue + ( random.NextDouble( ) * 10.0 - 5.0 );
10 | chart1.Series["Default"].Points.AddY(yValue);
11 | }
12 |
13 | // Set fast line chart type
14 | chart1.Series["Default"].ChartType = SeriesChartType.FastLine;
15 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/PointCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Point and Bubble Chart Gallery
8 | None
9 |
10 | PointBubbleGallery.htm
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Appearance/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set Axis Color
5 | Chart1.ChartAreas("Default").AxisY2.LineColor = Color.Red
6 |
7 | ' Set Axis Line Style
8 | Chart1.ChartAreas("Default").AxisY2.LineDashStyle = ChartDashStyle.Solid
9 |
10 | ' Set Arrow Style
11 | Chart1.ChartAreas("Default").AxisY2.ArrowStyle = AxisArrowStyle.None
12 |
13 | ' Set Line Width
14 | Chart1.ChartAreas("Default").AxisY2.LineWidth = 1
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/AlignmentTypes/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Make Chart Area 2 align to Chart Area 1
5 | Chart1.ChartAreas("Chart Area 2").AlignWithChartArea = "Default"
6 |
7 | ' Set the alignment type
8 | Chart1.ChartAreas("Chart Area 2").AlignmentStyle = AreaAlignmentStyles.Position |
9 | AreaAlignmentStyles.PlotPosition |
10 | AreaAlignmentStyles.Cursor |
11 | AreaAlignmentStyles.AxesView
12 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/LineCharts/FastLine/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Fill series data
5 | Dim yValue As Double = 50.0
6 | Dim random As New Random()
7 | Dim pointIndex As Integer
8 | For pointIndex = 0 To 19999
9 | yValue = yValue +(random.NextDouble() * 10.0 - 5.0)
10 | chart1.Series("Default").Points.AddY(yValue)
11 | Next pointIndex
12 |
13 | ' Set fast line chart type
14 | chart1.Series("Default").ChartType = SeriesChartType.FastLine
15 | ...
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingGaps3D/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Enable 3D charts
5 | Chart1.ChartAreas("Default").Area3DStyle.Enable3D = true
6 |
7 | ' Set the Y Angle to 90
8 | chart1.ChartAreas("Default").Area3DStyle.Rotation = 90
9 |
10 | ' Set the Point Depth to 100
11 | chart1.ChartAreas("Default").Area3DStyle.PointDepth = 100
12 |
13 | ' Set the Point Gap Width to 0
14 | chart1.ChartAreas("Default").Area3DStyle.PointGapDepth = 0
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/AlignmentTypes/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Make Chart Area 2 align to Chart Area 1
5 | Chart1.ChartAreas["Chart Area 2"].AlignWithChartArea = "Default";
6 |
7 | // Set the alignment type
8 | Chart1.ChartAreas["Chart Area 2"].AlignmentStyle = AreaAlignmentStyles.Position |
9 | AreaAlignmentStyles.PlotPosition |
10 | AreaAlignmentStyles.Cursor |
11 | AreaAlignmentStyles.AxesView;
12 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/PieDoughnutCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Pie and Doughnut Chart Gallery
8 | None
9 |
10 | PieDoughnutGallery.htm
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingPerspectives/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Enable 3D charts
5 | Chart1.ChartAreas["Default"].Area3DStyle.Enable3D = true;
6 |
7 | // Show a 30% perspective
8 | chart1.ChartAreas["Default"].Area3DStyle.Perspective = 30;
9 |
10 | // Set the X Angle to 30
11 | chart1.ChartAreas["Default"].Area3DStyle.Inclination = 30;
12 |
13 | // Set the Y Angle to 40
14 | chart1.ChartAreas["Default"].Area3DStyle.Rotation = 40;
15 |
16 | ...
17 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Appearance/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Axis Color
5 | chart1.ChartAreas["Default"].AxisY2.LineColor = Color.Red;
6 |
7 | // Set Axis Line Style
8 | chart1.ChartAreas["Default"].AxisY2.LineDashStyle = ChartDashStyle.Solid;
9 |
10 | // Set Arrow Style
11 | chart1.ChartAreas["Default"].AxisY2.ArrowStyle = AxisArrowStyle.None;
12 |
13 | // Set Line Width
14 | chart1.ChartAreas["Default"].AxisY2.LineWidth = 1;
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/CombinationalCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Combining Chart Types
8 | None
9 |
10 | CombinationGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Logarithmic Scale/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | The Logarithmic property
9 | determines if an axis is logarithmic, and the logarithmic base is defined by the
10 | LogarithmBase property. Note
11 | that this is only applicable to value axes, which are used to plot data values.
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingGaps3D/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Enable 3D charts
5 | chart1.ChartAreas["Default"].Area3DStyle.Enable3D = true;
6 |
7 | // Set the Y Angle to 90
8 | chart1.ChartAreas["Default"].Area3DStyle.Rotation = 90;
9 |
10 | // Set the Point Depth to 100
11 | chart1.ChartAreas["Default"].Area3DStyle.PointDepth = 100;
12 |
13 | // Set the Point Gap Width to 0
14 | chart1.ChartAreas["Default"].Area3DStyle.PointGapDepth = 0;
15 |
16 | ...
17 |
--------------------------------------------------------------------------------
/src/ChartTypes/PyramidFunnelCharts/Gallery/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Gallery
6 | thumbnail.jpg
7 | Pyramid and Funnel Chart Gallery
8 | None
9 |
10 | AccumulationGallery.htm
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/TOCNodes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Formulas
7 |
8 |
9 |
10 | Statistical
11 |
12 |
13 |
14 | Financial
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/SeriesAlignment/SeriesAlignment/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Align data series by grouping points and then inserting empty points daily
5 |
6 | ' Group series data by day
7 | Chart1.DataManipulator.Group("AVE", 1, IntervalType.Days, "Series1, Series2", _
8 | "Series3, Series4")
9 |
10 | ' Insert Empty Points daily if data point is missing
11 | Chart1.DataManipulator.InsertEmptyPoints(1, IntervalType.Days, "Series3, Series4")
12 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/SeriesAlignment/SeriesAlignment/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Align data series by grouping points and then inserting empty points daily
5 |
6 | // Group series data by day
7 | chart1.DataManipulator.Group("AVE", 1, IntervalType.Days, "Series1, Series2",
8 | "Series3, Series4");
9 |
10 | // Insert Empty Points daily if data point is missing
11 | chart1.DataManipulator.InsertEmptyPoints(1, IntervalType.Days, "Series3, Series4");
12 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Financial/PriceIndicators/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 | The Chart control provides three price indicator formulas:
4 |
5 |
6 | Median Price Formula: Find the daily median price.
7 |
8 | Typical Price Formula: Find the daily average price.
9 |
10 | Weighted Close Price Formula: Find the daily average price while giving
11 | more weight to the daily close price.rice.
12 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/Descriptive Statistics/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Calculate Mean
5 | double mean = chart1.DataManipulator.Statistics.Mean("Series1");
6 |
7 | // Calculate Median
8 | double median = chart1.DataManipulator.Statistics.Median("Series1");
9 |
10 | // Calculate Standard Deviation from the Variance
11 | double variance = chart1.DataManipulator.Statistics.Variance("Series1",true);
12 | double standardDeviation = Math.Sqrt(variance);
13 |
14 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsNextToAxis/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set X and Y axis crossing points
5 | Chart1.ChartAreas("Default").AxisX.Crossing = 0
6 | Chart1.ChartAreas("Default").AxisY.Crossing = 0
7 |
8 | ' Position the X axis labels and tick marks to the area border
9 | Chart1.ChartAreas("Default").AxisX.IsMarksNextToAxis = False
10 |
11 | ' Position the Y axis labels and tick marks next to the axis
12 | Chart1.ChartAreas("Default").AxisY.IsMarksNextToAxis = True
13 |
14 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/CopyingSeriesValues/MergingValues/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Merge data from 4 different series into one series that uses 4 Y values
5 | Chart1.DataManipulator.CopySeriesValues("High:Y,Low:Y,Open:Y,Close:Y", _
6 | "Stock:Y1,Stock:Y2,Stock:Y3,Stock:Y4")
7 |
8 | ' Set stock series attributes
9 | Chart1.Series("Stock").ChartType = SeriesChartType.Stock
10 | Chart1.Series("Stock").BorderWidth = 2
11 | Chart1.Series("Stock").ShadowOffset = 2
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Axes
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Axis, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/ToolTips/UsingToolTips/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set ToolTips for Data Point Series
5 | chart1.Series(0).ToolTip = "Percent: #PERCENT"
6 |
7 | ' Set ToolTips for legend items
8 | chart1.Series(0).LegendToolTip = "Income in #LABEL is #VAL million"
9 |
10 | ' Set ToolTips for the Data Point labels
11 | chart1.Series(0).LabelToolTip = "#PERCENT"
12 |
13 | ' Set ToolTips for second Data Point
14 | chart1.Series(0).Points(1).ToolTip = "Unknown"
15 |
16 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/CopyingSeriesValues/MergingValues/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Merge data from 4 different series into one series that uses 4 Y values
5 | chart1.DataManipulator.CopySeriesValues("High:Y,Low:Y,Open:Y,Close:Y",
6 | "Stock:Y1,Stock:Y2,Stock:Y3,Stock:Y4");
7 |
8 | // Set stock series attributes
9 | chart1.Series["Stock"].ChartType = SeriesChartType.Stock;
10 | chart1.Series["Stock"].BorderWidth = 2;
11 | chart1.Series["Stock"].ShadowOffset = 2;
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsNextToAxis/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set X and Y axis crossing points
5 | chart1.ChartAreas["Default"].AxisX.Crossing = 0;
6 | chart1.ChartAreas["Default"].AxisY.Crossing = 0;
7 |
8 | // Position the X axis labels and tick marks to the area border
9 | chart1.ChartAreas["Default"].AxisX.IsMarksNextToAxis = false;
10 |
11 | // Position the Y axis labels and tick marks next to the axis
12 | chart1.ChartAreas["Default"].AxisY.IsMarksNextToAxis = true;
13 |
14 | ...
15 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/FindingSeriesPoints/FindByMaxMinValues/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Find point with maximum Y value and change color
5 | Dim maxValuePoint As DataPoint = Chart1.Series("Series1").Points.FindMaxValue()
6 | maxValuePoint.Color = Color.FromArgb(255, 128, 128)
7 |
8 | ' Find point with minimum Y value and change color
9 | Dim minValuePoint As DataPoint = Chart1.Series("Series1").Points.FindMinValue()
10 | minValuePoint.Color = Color.FromArgb(128, 128, 255)
11 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/Descriptive Statistics/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Calculate Mean
5 | Dim mean As Double = chart1.DataManipulator.Statistics.Mean("Series1")
6 |
7 | ' Calculate Median
8 | Dim median As Double = chart1.DataManipulator.Statistics.Median("Series1")
9 |
10 | ' Calculate Standard Deviation from the Variance
11 | Dim variance As Double = chart1.DataManipulator.Statistics.Variance("Series1", True)
12 | Dim standardDeviation As Double = Math.Sqrt(variance)
13 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/ToolTips/UsingToolTips/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set ToolTips for Data Point Series
5 | chart1.Series[0].ToolTip = "Percent: #PERCENT";
6 |
7 | // Set ToolTips for legend items
8 | chart1.Series[0].LegendToolTip = "Income in #LABEL is #VAL million";
9 |
10 | // Set ToolTips for the Data Point labels
11 | chart1.Series[0].LabelToolTip = "#PERCENT";
12 |
13 | // Set ToolTips for second Data Point
14 | chart1.Series[0].Points[1].ToolTip = "Unknown";
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Labels
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Labels, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Legends
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Legend, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Titles/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Titles
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Title, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/GettingStarted/Text/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Text Elements
5 | thumbnail.jpg
6 | Text Elements
7 | Text Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Text Elements
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/FindingSeriesPoints/FindByValue/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Find all points with second Y value equal to 10 and change their color
5 | Dim index As Integer = 0
6 |
7 | Dim dataPoint As DataPoint = Chart1.Series("Series1").Points.FindValue(10, "Y2", index)
8 | While Not (dataPoint Is Nothing)
9 | dataPoint.Color = Color.FromArgb(255, 128, 128)
10 | index += 1
11 | dataPoint = Chart1.Series("Series1").Points.FindValue(10, "Y2", index)
12 | End While
13 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/EmptyPoints/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Empty Points
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Empty Points
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Series
7 | DataSeries
8 |
9 | Overview.htm
10 |
11 |
12 | Series, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Printing/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Printing
7 | Printing
8 |
9 | Overview.htm
10 |
11 |
12 | Printing, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/FindingSeriesPoints/FindByMaxMinValues/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Find point with maximum Y value and change color
5 | DataPoint maxValuePoint = chart1.Series["Series1"].Points.FindMaxValue();
6 | maxValuePoint.Color = Color.FromArgb(255, 128, 128);
7 |
8 | // Find point with minimum Y value and change color
9 | DataPoint minValuePoint = chart1.Series["Series1"].Points.FindMinValue();
10 | minValuePoint.Color = Color.FromArgb(128, 128, 255);
11 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Chart Areas
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Chart area, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/GettingStarted/ChartElements/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Chart Elements
5 | thumbnail.jpg
6 | Chart Elements Overview
7 | None
8 |
9 | Overview.htm
10 |
11 |
12 | Data, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/GettingStarted/CoordinateSystem/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Coordinate System
5 | thumbnail.jpg
6 | Coordinate System
7 | None
8 |
9 | Overview.htm
10 |
11 |
12 | Data, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/Series Z Order/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Create references to series
5 | Dim series() As Series = New Series(3) {}
6 | series(0) = Chart1.Series("Series1")
7 | series(1) = Chart1.Series("Series2")
8 | series(2) = Chart1.Series("Series3")
9 |
10 | ' Remove all series from the collection
11 | Chart1.Series.Clear()
12 |
13 | ' Add chart series to the collection in selected order
14 | Chart1.Series.Add(series(2))
15 | Chart1.Series.Add(series(0))
16 | Chart1.Series.Add(series(1))
17 |
18 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/ZoomingScrolling/BasicZooming/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Zoom into the X axis
5 | chart1.ChartAreas("Default").AxisX.ScaleView.Zoom(2, 3)
6 |
7 | ' Enable range selection and zooming end user interface
8 | chart1.ChartAreas("Default").CursorX.IsUserEnabled = True
9 | chart1.ChartAreas("Default").CursorX.IsUserSelectionEnabled = True
10 | chart1.ChartAreas("Default").AxisX.ScaleView.Zoomable = True
11 | chart1.ChartAreas("Default").AxisX.ScrollBar.IsPositionedInside = True
12 |
13 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/WorkingWithDates/RetrievingAssigningDates/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set Minimum value for X axis
5 | Chart1.ChartAreas("Default").AxisX.Minimum = New DateTime(1998, 3, 5).ToOADate()
6 |
7 | ' Set Maximum value for X axis
8 | Chart1.ChartAreas("Default").AxisX.Maximum = New DateTime(2001, 1, 1).ToOADate()
9 |
10 | ' Convert Double to DateTime.
11 | Dim dateTime As DateTime = DateTime.FromOADate(35977)
12 |
13 | ' Convert DateTime to string.
14 | Label1.Text = dateTime.ToLongDateString()
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/Series Z Order/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Create references to series
5 | Series [] series = new Series[3];
6 | series[0] = chart1.Series["Series1"];
7 | series[1] = chart1.Series["Series2"];
8 | series[2] = chart1.Series["Series3"];
9 |
10 | // Remove all series from the collection
11 | chart1.Series.Clear();
12 |
13 | // Add chart series to the collection in the specified order
14 | chart1.Series.Add(series[2]);
15 | chart1.Series.Add(series[0]);
16 | chart1.Series.Add(series[1]);
17 |
18 | ...
--------------------------------------------------------------------------------
/src/GettingStarted/CreatingFirstChart/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Creating a Basic Chart
5 | thumbnail.jpg
6 | Creating a Basic Chart
7 | None
8 |
9 | Overview.htm
10 |
11 |
12 | Data, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/TTest/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | Dim result As TTestResult
5 |
6 | ' Make TTest with Equal Variances
7 | result = chart1.DataManipulator.Statistics.TTestEqualVariances(0, 0.95, "FirstGroup", "SecondGroup")
8 |
9 | ' Make TTest with Unequal Variances
10 | result = chart1.DataManipulator.Statistics.TTestUnEqualVariances(0, 0.95, "FirstGroup", "SecondGroup")
11 |
12 | ' Make TTest Paired
13 | result = chart1.DataManipulator.Statistics.TTestPaired(0, 0.95, "FirstGroup", "SecondGroup")
14 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/WorkingWithDates/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Working with Dates
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Dates, Working with
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/WorkingWithDates/RetrievingAssigningDates/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Minimum value for X axis
5 | chart1.ChartAreas["Default"].AxisX.Minimum = new DateTime( 1998, 3, 5 ).ToOADate();
6 |
7 | // Set Maximum value for X axis
8 | chart1.ChartAreas["Default"].AxisX.Maximum = new DateTime( 2001, 1, 1 ).ToOADate();
9 |
10 | // Convert Double to DateTime.
11 | DateTime dateTime = DateTime.FromOADate( 35977 );
12 |
13 | // Convert DateTime to string.
14 | Label1.Text = dateTime.ToLongDateString();
15 |
16 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Customizations/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Customization
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Customizations, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/ArrayBinding/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | The X and Y values of a data series can be bound to arrays of values using
6 | the DataBindXY method.
7 |
8 | The DataBindXY method supports multiple data sources for the X and Y values, as
9 | well as binding to multiple Y values. This is especially useful when working
10 | with chart types that use multiple Y values such as the Bubble chart and Stock
11 | chart.
8 |
9 | The events are raised when the size or position of a view changes due to the chart
10 | reader's interaction with the chart. The AxisViewChanged event is raised when a view is changed.
11 | The AxisViewChanging event is raised before a view is redrawn.
12 |
5 |
6 | The X and Y values of a data series can be bound to data sources using
7 | the DataBindXY and DataBindY methods.
8 |
9 | In this sample:
10 |
11 |
The CSV data source is queried
12 |
The resulting data is loaded into a data reader
13 |
The data reader is then passed into the DataBind(X)Y method call.
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/UsingMarkers/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set marker attributes for the whole series
5 | chart1.Series["Default"].MarkerStyle = MarkerStyle.Circle;
6 | chart1.Series["Default"].MarkerSize = 3;
7 | chart1.Series["Default"].MarkerColor = Color.Magenta;
8 | chart1.Series["Default"].MarkerBorderColor = Color.Red;
9 | chart1.Series["Default"].MarkerBorderWidth = 1;
10 |
11 | // Set an marker style for the third data point in series
12 | chart1.Series["Default"].Points[2].MarkerStyle = MarkerStyle.Diamond;
13 |
14 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/UsingMarkers/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set marker attributes for the whole series
5 | chart1.Series("Default").MarkerStyle = MarkerStyle.Circle
6 | chart1.Series("Default").MarkerSize = 3
7 | chart1.Series("Default").MarkerColor = Color.Magenta
8 | chart1.Series("Default").MarkerBorderColor = Color.Red
9 | chart1.Series("Default").MarkerBorderWidth = 1
10 |
11 | ' Set an marker style for the third data point in series
12 | chart1.Series("Default").Points(2).MarkerStyle = MarkerStyle.Diamond
13 |
14 | ...
--------------------------------------------------------------------------------
/src/GettingStarted/SeriesAndPoints/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Series and Points
5 | thumbnail.jpg
6 | Series and Points
7 | Series and Points Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Series and Points, Overview
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/Grouping/GroupingByAxisLabel/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Grouping replaces multiple related data points in a series with one data point.
10 | The the X and Y values of each grouped data point are calculated using a
11 | specified formula and the values of the original data points.
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Data Sources
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Data Binding
13 | Binding Data
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/Smart Labels/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting.Chart;
2 | ...
3 |
4 | chart1.Series["Default"].SmartLabelStyle.Enabled = true;
5 | chart1.Series["Default"].SmartLabelStyle.AllowOutsidePlotArea = LabelOutsidePlotAreaStyle.Partial;
6 | chart1.Series["Default"].SmartLabelStyle.CalloutLineAnchorCap = LineAnchorCapStyle.Diamond;
7 | chart1.Series["Default"].SmartLabelStyle.CalloutLineColor = Color.Red;
8 | chart1.Series["Default"].SmartLabelStyle.CalloutLineWidth = 2;
9 | chart1.Series["Default"].SmartLabelStyle.CalloutStyle = LabelCalloutStyle.Box;
10 |
11 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/Smart Labels/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting.Chart
2 | ...
3 |
4 | chart1.Series("Default").SmartLabelStyle.Enabled = True
5 | chart1.Series("Default").SmartLabelStyle.AllowOutsidePlotArea = LabelOutsidePlotAreaStyle.Partial
6 | chart1.Series("Default").SmartLabelStyle.CalloutLineAnchorCap = LineAnchorCapStyle.Diamond
7 | chart1.Series("Default").SmartLabelStyle.CalloutLineColor = Color.Red
8 | chart1.Series("Default").SmartLabelStyle.CalloutLineWidth = 2
9 | chart1.Series("Default").SmartLabelStyle.CalloutStyle = LabelCalloutStyle.Box
10 |
11 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/SpikeRemoval/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Spike Removal
5 | thumbnail.jpg
6 | Spike Removal
7 | SpikeRemoval
8 |
9 |
10 |
11 | Spike Removal
12 | Remove Data Spikes
13 | Data, Remove Spikes
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Working with Data
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Data, Working with
13 | Working with Data
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/Z Order/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Create references to chart areas.
5 | ChartArea [] areas = new ChartArea[3];
6 | areas[0] = chart1.ChartAreas["Default"];
7 | areas[1] = chart1.ChartAreas["Chart Area 2"];
8 | areas[2] = chart1.ChartAreas["Chart Area 3"];
9 |
10 | // Remove all chart areas from the collection
11 | chart1.ChartAreas.Clear();
12 |
13 | // Add chart areas to the collection in selected order
14 | chart1.ChartAreas.Add(areas[0]);
15 | chart1.ChartAreas.Add(areas[2]);
16 | chart1.ChartAreas.Add(areas[1]);
17 |
18 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/HidingSeries/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hiding Series
5 | thumbnail.jpg
6 | Hiding Series
7 | HidingSeries
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Series, Hiding
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartAppearance/Appearance/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Chart Background Appearance
5 | thumbnail.jpg
6 | Setting Chart Background
7 | ChartAppearance
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Appearance
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/GettingStarted/BasicPopulatingData/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Basic Data Population
5 | thumbnail.jpg
6 | Populating the Chart with Data
7 | BasicPopulatingData
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/AxisScale/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Axis Scale
5 | thumbnail.jpg
6 | Setting Axis Value
7 | AxisScale
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Scale
14 | Axis, Scale
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/AxisScale/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set Logarithmic scale
5 | Chart1.ChartAreas("Default").AxisY.IsLogarithmic = True
6 |
7 | ' Set Auto scale.
8 | If AutoScale.Checked Then
9 | ' Set auto minimum and maximum values.
10 | Chart1.ChartAreas("Default").AxisY.Minimum = [Double].NaN
11 | Chart1.ChartAreas("Default").AxisY.Maximum = [Double].NaN
12 | Else
13 | ' Set manual minimum and maximum values.
14 | Chart1.ChartAreas("Default").AxisY.Minimum = 10
15 | Chart1.ChartAreas("Default").AxisY.Maximum = 1000
16 | End If
17 |
18 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/LegendCellSpan/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Legend Cell Span
5 | thumbnail.jpg
6 | Legend Cell Span
7 | LegendCellSpan
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Legend, Cell Span
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/LegendFont/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Legend Font
5 | thumbnail.jpg
6 | Setting Legend Font Appearance
7 | LegendFont
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Legend, Font
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/BasicSerialization/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.IO
2 | Imports System.Windows.Forms.DataVisualization.Charting
3 | ...
4 |
5 | ' Save first chart into the memory stream
6 | chart2.Serializer.Content = SerializationContents.Default
7 | Dim ms As New MemoryStream()
8 | chart1.Serializer.Save(ms)
9 |
10 | ' Load data from memory stream into the second chart
11 | ms.Seek(0, SeekOrigin.Begin)
12 | chart2.Serializer.Load(ms)
13 | ms.Close()
14 | ...
15 |
16 | ' Reset visual appearance of the second chart
17 | chart2.Serializer.Content = SerializationContents.Appearance
18 | chart2.Serializer.Reset()
19 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/Exporting/Xml/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting.Chart
2 | ...
3 |
4 | Dim random As New Random()
5 | Dim pointIndex As Integer
6 | For pointIndex = 0 To 6
7 | Chart1.Series("Series1").Points.AddXY(DateTime.Now.Date.AddDays(pointIndex), random.Next(1, 1000))
8 | Next pointIndex
9 |
10 | ' Export chart series values into the data set
11 | Dim dataSet As DataSet = Chart1.DataManipulator.ExportSeriesValues("Series1")
12 |
13 | ' Get XML data and schema from data set
14 | XMLTextBox.Text = dataSet.GetXml()
15 | SchemaTextBox.Text = dataSet.GetXmlSchema()
16 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataManipulation/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Overview
6 | thumbnail.jpg
7 | Data Manipulation
8 | Overview
9 |
10 | Overview.htm
11 |
12 |
13 | Data Manipulation
14 | Manipulating Data
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/AxisMargins/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Axis Margins
5 | thumbnail.jpg
6 | Setting Axis Margins
7 | AxisMargins
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Margin
14 | Axis, Margin
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/CursorAppearance/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Create cursor object
5 | Dim cursor AS System.Windows.Forms.DataVisualization.Charting.Cursor
6 |
7 | ' Set cursor object
8 | cursor = Chart1.ChartAreas("Default").CursorY
9 |
10 | ' Set cursor properties
11 | cursor.LineWidth = 2
12 | cursor.LineDashStyle = ChartDashStyle.DashDot
13 | cursor.LineColor = Color.Red
14 | cursor.SelectionColor = Color.Yellow
15 |
16 | ' Set cursor selection color of X axis cursor
17 | Chart1.ChartAreas("Default").CursorX.SelectionColor = Color.Yellow
18 |
19 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/MultiChartAreaCursor/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | 'First set the ChartArea.InnerPlotPosition property.
5 | chart1.ChartAreas("Default").InnerPlotPosition.Auto = True
6 | chart1.ChartAreas("Volume").InnerPlotPosition.Auto = True
7 |
8 | 'Set the alignment properties so the "Volume" chart area will allign to "Default"
9 | chart1.ChartAreas("Volume").AlignmentOrientation = AreaAlignmentOrientations.Vertical
10 | chart1.ChartAreas("Volume").AlignmentStyle = AreaAlignmentStyles.All
11 | chart1.ChartAreas("Volume").AlignWithChartArea = "Default"
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsFormatting/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting.Chart
2 | ...
3 |
4 | ' Disable end labels for the X axis
5 | Chart1.ChartAreas("Default").AxisX.LabelStyle.IsEndLabelVisible = False
6 |
7 | ' Set X axis labels format
8 | Chart1.ChartAreas("Default").AxisX.LabelStyle.Format = "D"
9 |
10 | ' Set Y axis labels format
11 | Chart1.ChartAreas("Default").AxisY.LabelStyle.Format = "C0"
12 |
13 | ' Set series point labels format
14 | Chart1.Series("Series1").LabelFormat = "P3"
15 |
16 | ' Set series point labels color
17 | Chart1.Series("Series1").FontColorCombo = Color.Navy
18 |
19 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/BasicSerialization/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Windows.Forms.DataVisualization.Charting;
3 | ...
4 |
5 | // Save first chart into the memory stream
6 | chart2.Serializer.Content = SerializationContents.Default;
7 | MemoryStream ms = new MemoryStream();
8 | chart1.Serializer.Save(ms);
9 |
10 | // Load data from memory stream into the second chart
11 | ms.Seek(0, SeekOrigin.Begin);
12 | chart2.Serializer.Load(ms);
13 | ms.Close();
14 | ...
15 |
16 | // Reset visual appearance of the second chart
17 | chart2.Serializer.Content = SerializationContents.Appearance;
18 | chart2.Serializer.Reset();
19 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/Templates/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Using Templates
5 | thumbnail.jpg
6 | Templates
7 | Templates
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Serialization, Overview
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingGaps3D/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 3D Point Gap and Depth
5 | thumbnail.jpg
6 | 3D Point Gap and Depth
7 | UsingGaps3D
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Depth
14 | 3D, Point and gap depth
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartAppearance/UsingPerspectives/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 3D Perspective
5 | thumbnail.jpg
6 | Using 3D Perspective
7 | UsingPerspectives
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Perspective
14 | 3D, Perspective
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Customizations/PaintingDataTable/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | using System.Windows.Forms.DataVisualization.Charting.Utilities;
3 | ...
4 |
5 | bool bShowTotals = false;
6 |
7 | // ChartDataTableHelper is a helper class found in the samples
8 | // in the folder Utilties.
9 | ChartDataTableHelper TableHelper = new ChartDataTableHelper();
10 |
11 | // Initialize the TableHelper with the chart object
12 | TableHelper.Initialize(Chart1, bShowTotals);
13 |
14 | // Set the Colors of the Table
15 | TableHelper.TableColor = Color.White;
16 | TableHelper.BorderColor = Color.Black;
17 | ...
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/CursorAppearance/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Create cursor object
5 | System.Windows.Forms.DataVisualization.Charting.Cursor cursor = null;
6 |
7 | // Set cursor object
8 | cursor = chart1.ChartAreas["Default"].CursorY;
9 |
10 | // Set cursor properties
11 | cursor.LineWidth = 2;
12 | cursor.LineDashStyle = ChartDashStyle.DashDot;
13 | cursor.LineColor = Color.Red;
14 | cursor.SelectionColor = Color.Yellow;
15 |
16 | // Set cursor selection color of X axis cursor
17 | chart1.ChartAreas["Default"].CursorX.SelectionColor = Color.Yellow;
18 |
19 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/InteractiveCharting/Cursors/MultiChartAreaCursor/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // First set the ChartArea.InnerPlotPosition property.
5 | chart1.ChartAreas["Default"].InnerPlotPosition.Auto = true;
6 | chart1.ChartAreas["Volume"].InnerPlotPosition.Auto = true;
7 |
8 | // Set the alignment properties so the "Volume" chart area will allign to "Default"
9 | chart1.ChartAreas["Volume"].AlignmentOrientation = AreaAlignmentOrientations.Vertical;
10 | chart1.ChartAreas["Volume"].AlignmentStyle = AreaAlignmentStyles.All;
11 | chart1.ChartAreas["Volume"].AlignWithChartArea = "Default";
12 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Labels/LabelsFormatting/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting.Chart;
2 | ...
3 |
4 | // Disable end labels for the X axis
5 | chart1.ChartAreas["Default"].AxisX.LabelStyle.IsEndLabelVisible = false;
6 |
7 | // Set X axis labels format
8 | chart1.ChartAreas["Default"].AxisX.LabelStyle.Format = "D";
9 |
10 | // Set Y axis labels format
11 | chart1.ChartAreas["Default"].AxisY.LabelStyle.Format = "C0";
12 |
13 | // Set series point labels format
14 | chart1.Series["Series1"].LabelFormat = "P3";
15 |
16 | // Set series point labels color
17 | chart1.Series["Series1"].FontColorCombo = Color.Navy;
18 |
19 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Axis/AxisScale/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Logarithmic scale
5 | chart1.ChartAreas["Default"].AxisY.IsLogarithmic = true;
6 |
7 | // Set Auto scale.
8 | if( AutoScale.Checked )
9 | {
10 | // Set auto minimum and maximum values.
11 | chart1.ChartAreas["Default"].AxisY.Minimum = Double.NaN;
12 | chart1.ChartAreas["Default"].AxisY.Maximum = Double.NaN;
13 | }
14 | else
15 | {
16 | // Set manual minimum and maximum values.
17 | chart1.ChartAreas["Default"].AxisY.Minimum = 10;
18 | chart1.ChartAreas["Default"].AxisY.Maximum = 1000;
19 | }
20 |
21 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/LegendInteractive/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Interactive Legend
5 | thumbnail.jpg
6 | Interactive Legend
7 | LegendInteractive
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Legend, Interactive
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/WorkingWithData/WorkingWithDates/TimeScale/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Real Time Scale
5 | thumbnail.jpg
6 | Using Real Time Scale
7 | TimeScale
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Real Time Data, Working with Dates
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/data/data.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Danny
5 | 10440
6 |
7 |
8 | Larry
9 | 17772
10 |
11 |
12 | Aaron
13 | 23880
14 |
15 |
16 | Marry
17 | 7663
18 |
19 |
20 | Sally
21 | 21773
22 |
23 |
24 | Nguyen
25 | 32294
26 |
27 |
--------------------------------------------------------------------------------
/src/ChartAppearance/Borders/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Border Appearance
6 | thumbnail.jpg
7 | Setting Border Appearance
8 | Borders
9 |
10 | cscode.txt
11 | vbcode.txt
12 |
13 |
14 | Border skin
15 | Appearance, Border
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Annotations/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Overview of Annotations
7 | OverviewAnnotations
8 |
9 | Overview.htm
10 |
11 |
12 | Annotations
13 | Overview, Annotations
14 | Annotations, Overview
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/ChartInDataPoint/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Mini-Chart in Data Points
5 | thumbnail.jpg
6 | Displaying Mini-Chart in Data Points
7 | ChartInDataPoint
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Chart in data point
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Serialization/BasicSerialization/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Basic Serialization
5 | thumbnail.jpg
6 | Chart Serialization
7 | BasicSerialization
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Serialization
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/LegendCellColumns/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Setting Multiple Columns
5 | thumbnail.jpg
6 | Setting Multiple Columns
7 | LegendCellColumns
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Legend, Cell Columns
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/WorkingWithData/DataBinding/DataSourceBinding/Overview.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | If the data source is set at design-time, the automatically calls the
8 | Chart.DataBind method when it loads. You can also call this method explicitly in
9 | the Page_Load event if extra data bind processing is required.
10 |
11 | This method traverses through the data source only once to bind all data. It
12 | also supports multiple Y values.
5 |
6 | Chart.DataBindCrossTable is different compared to all other binding methods in
7 | that it allows for the grouping of unique values in a column. Each unique value
8 | in the specified grouped column results in the creation of a data series.
9 |
10 | Note that the method traverses through the specified data source only once to
11 | perform all binding. In addition, extended data point properties other than X
12 | and Y values can be bound.
13 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Financial/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Financial Formulas
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Data Manipulation
13 | Financial Formulas
14 | Formulas, Financial
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/IndexedX/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Indexed X Values
5 | thumbnail.jpg
6 | Indexed X Values
7 | IndexedX
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Series, Indexed X values
14 | Indexed X values
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/Series Z Order/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Series Z Order
5 | thumbnail.jpg
6 | Setting Series Z Order
7 | SeriesZOrder
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Series, Z order
14 | Z order, Series
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Legend/MultipleLegendsWithCheckBox/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Multiple Legends
6 | thumbnail.jpg
7 | Using Multiple Legends
8 | MultipleLegendsWithCheckBox
9 |
10 | cscode.txt
11 | vbcode.txt
12 |
13 |
14 | Multiple legends
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartTypes/BarColumnCharts/BarColumn/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set series chart type
5 | Chart1.Series("Default").ChartType = SeriesChartType.Bar
6 |
7 | ' Set series point width
8 | Chart1.Series("Default")("PointWidth") = "0.6"
9 |
10 | ' Show data points labels
11 | Chart1.Series("Default").IsValueShownAsLabel = True
12 |
13 | ' Set data points label style
14 | Chart1.Series("Default")("BarLabelStyle") = "Center"
15 |
16 | ' Display as 3D
17 | Chart1.ChartAreas("Default").Area3DStyle.Enable3D = True
18 |
19 | ' Draw the chart as embossed
20 | chart1.Series("Default")("DrawingStyle") = "Emboss"
21 |
22 | ...
--------------------------------------------------------------------------------
/src/WorkingWithData/DataSourceTypes/XMLData/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Binding to XML Files
5 | thumbnail.jpg
6 | Binding to XML Files
7 | XMLData
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Data, Binding to XML
14 | Binding, XML
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/WorkingWithData/ManyYBubble/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multiple Y Values
5 | thumbnail.jpg
6 | Multiple Y Values
7 | ManyYBubble
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Multiple Y Values
14 | Y Values
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/ChartFeatures/Events/ScrollBarEvents/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | chart1.AxisScrollBarClicked += new ScrollBarEventHandler(this.chart1_AxisScrollBarClicked);
5 | ...
6 |
7 | private void chart1_AxisScrollBarClicked(object sender, ScrollBarEventArgs e)
8 | {
9 | // Handle zoom reset button
10 | if(e.ButtonType == ScrollBarButtonType.ZoomReset)
11 | {
12 | // Event is handled, no more processing required
13 | e.Handled = true;
14 |
15 | // Reset zoom on X and Y axis
16 | chart1.ChartAreas["Default"].AxisX.ScaleView.ZoomReset();
17 | chart1.ChartAreas["Default"].AxisY.ScaleView.ZoomReset();
18 | }
19 | }
20 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Titles/ChartTitle/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Chart Title
5 | thumbnail.jpg
6 | Setting Chart Title Appearance
7 | ChartTitle
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Title, Chart
14 | Appearance, Chart title
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartTypes/BarColumnCharts/3DBarColumn/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set Bar chart type
5 | Chart1.Series["Default"].ChartType = SeriesChartType.Bar;
6 |
7 | // Disable X axis margin
8 | Chart1.ChartAreas["Default"].AxisX.IsMarginVisible = false;
9 |
10 | // Enable 3D charts
11 | Chart1.ChartAreas["Default"].Area3DStyle.Enable3D = true;
12 |
13 | // Set Rotation angles
14 | Chart1.ChartAreas["Default"].Area3DStyle.Rotation = 30;
15 | Chart1.ChartAreas["Default"].Area3DStyle.Inclination = 10;
16 |
17 | // Disable/enable right angle axis
18 | Chart1.ChartAreas["Default"].Area3DStyle.IsRightAngleAxes = false;
19 | ...
20 |
--------------------------------------------------------------------------------
/src/WorkingWithData/Formulas/Statistical/Overview/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Overview
5 | thumbnail.jpg
6 | Statistical Formulas
7 | Overview
8 |
9 | Overview.htm
10 |
11 |
12 | Data, Manipulation
13 | Statistical Formulas
14 | Formulas, Statistical
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/ChartArea/Z Order/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Z Order
5 | thumbnail.jpg
6 | Using Chart Areas ZOrder
7 | ZOrder
8 |
9 | cscode.txt
10 | vbcode.txt
11 |
12 |
13 | Z order
14 | Chart area, Z order
15 | Series, Z order
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartFeatures/DataSeries/PointWidthAndDepth/vbcode.txt:
--------------------------------------------------------------------------------
1 | Imports System.Windows.Forms.DataVisualization.Charting
2 | ...
3 |
4 | ' Set series points width to 20 pixels
5 | Chart1.Series("Series 1")("PixelPointWidth") = "20"
6 |
7 | ' Minimum and/or Maximum points width in pixels can be
8 | ' specified to adjust default width of points.
9 | Chart1.Series("Series 2")("MinPixelPointWidth") = "10"
10 | Chart1.Series("Series 2")("MaxPixelPointWidth") = "30"
11 |
12 | ' Set series points depth to 30 pixels
13 | Chart1.Series("Series 1")("PixelPointDepth") = "20"
14 |
15 | ' Set series points gap depth to 10 pixels
16 | Chart1.Series("Series 1")("PixelPointGapDepth") = "10"
17 |
18 | ...
--------------------------------------------------------------------------------
/src/ChartFeatures/Titles/MultipleTitles/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Multiple Titles
6 | thumbnail.jpg
7 | Multiple Titles and Alignment
8 | MultipleTitles
9 |
10 | cscode.txt
11 | vbcode.txt
12 |
13 |
14 | Title, Multiple titles
15 | Multiple titles
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/ChartTypes/BarColumnCharts/BarColumn/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set series chart type
5 | chart1.Series["Default"].ChartType = SeriesChartType.Bar;
6 |
7 | // Set series point width
8 | chart1.Series["Default"]["PointWidth"] = "0.6";
9 |
10 | // Show data points labels
11 | chart1.Series["Default"].IsValueShownAsLabel = true;
12 |
13 | // Set data points label style
14 | chart1.Series["Default"]["BarLabelStyle"] = "Center";
15 |
16 | // Display chart as 3D
17 | chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
18 |
19 | // Draw the chart as embossed
20 | chart1.Series["Default"]["DrawingStyle"] = "Emboss";
21 |
22 | ...
--------------------------------------------------------------------------------
/src/ChartTypes/PriceRangeFinancialCharts/Kagi/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // Set series chart type
5 | chart1.Series["Default"].ChartType = SeriesChartType.Kagi;
6 |
7 | // Set the PriceUpColor attribute
8 | chart1.Series["Default"]["PriceUpColor"] = "SkyBlue";
9 |
10 | // Set the default color - price-down
11 | chart1.Series["Default"].Color = Color.Tomato;
12 |
13 | // Clear attribute, let the default ReversalAmount to be calculated
14 | chart1.Series["Default"].DeleteCustomProperty("ReversalAmount");
15 |
16 | // Set the ReversalAmount attribute
17 | chart1.Series["Default"]["ReversalAmount"] = "1%";
18 | ...
19 |
20 |
--------------------------------------------------------------------------------
/src/ChartTypes/PyramidFunnelCharts/Funnel/sampleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Funnel Chart
6 | thumbnail.jpg
7 | Funnel Chart Type
8 | FunnelChartType
9 |
10 | cscode.txt
11 | vbcode.txt
12 |
13 |
14 |
15 | Chart type, Funnel
16 | Funnel Charts
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/GettingStarted/BasicPopulatingData/cscode.txt:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms.DataVisualization.Charting;
2 | ...
3 |
4 | // initialize an array of doubles for Y values
5 | double [] yval = { 5,6,4,6,3};
6 |
7 | // initialize an array of strings for X values
8 | string [] xval = { "A", "B", "C", "D", "E"};
9 |
10 | // bind the arrays to the X and Y values of data points in the "ByArray" series
11 | chart1.Series["ByArray"].Points.DataBindXY(xval,yval);
12 |
13 | // now iterate through the arrays to add points to the "ByPoint" series,
14 | // setting X and Y values
15 | for(int i = 0; i < 5; i++)
16 | {
17 | chart1.Series["ByPoint"].Points.AddXY(xval[i], yval[i]);
18 | }
19 |
20 | ...
--------------------------------------------------------------------------------