Tutorial für Microsoft Chart Controls für Microsoft .NET Framework 3.5
mal was von Microsoft, völlig umsonst - ein Chart-Tool zum Einbinden in die eigene .NET Anwendung. Zunächst einmal ein paar Links für den Download und die Dokumentation:
Einfach zu handhaben und sieht dazu noch super aus!
mal was von Microsoft, völlig umsonst - ein Chart-Tool zum Einbinden in die eigene .NET Anwendung. Zunächst einmal ein paar Links für den Download und die Dokumentation:
- Visual Studio 2008 SP1 Download
- .NET Framework 3.5 SP1 Download
- Microsoft Chart Control Download
- Visual Studio 2008 Support Tool for the Chart Control Download
- Dokumentation
VB.NET-Quellcode
- With cha_rente
- .ChartAreas.Clear()
- .Series.Clear()
- ' Add Chart Area to the Chart
- Dim chartArea1 As New ChartArea()
- .ChartAreas.Add(chartArea1)
- Dim Series1 As New Series()
- .Series.Add(Series1)
- .AntiAliasing = AntiAliasingStyles.All
- .TextAntiAliasingQuality = TextAntiAliasingQuality.High
- .BackColor = Color.Transparent
- .BackSecondaryColor = Color.Transparent
- .BackHatchStyle = ChartHatchStyle.DashedHorizontal
- .BackGradientStyle = GradientStyle.DiagonalRight
- .BorderColor = Color.Transparent
- .BorderDashStyle = ChartDashStyle.DashDotDot
- .BorderWidth = 1
- .Titles.Clear()
- .Titles.Add("Titel")
- .Titles(0).Text = "Vergleich Altersrente"
- .Titles(0).Font = New Font("Thahoma", 10, FontStyle.Regular)
- .Titles(0).ForeColor = Color.Black
- .Titles(0).BorderColor = Color.Transparent
- .Titles(0).BackColor = Color.Transparent
- .Titles(0).Alignment = System.Drawing.ContentAlignment.BottomCenter
- .Titles(0).ToolTip = "Title"
- Dim yval As Double() = {2000.30, 3562.32}
- Dim xVal As String() = {"1. Wert", "2. Wert"}
- .ChartAreas("ChartArea1").Area3DStyle.Enable3D = True
- .ChartAreas("ChartArea1").Area3DStyle.LightStyle = LightStyle.Simplistic
- .ChartAreas("ChartArea1").Area3DStyle.IsRightAngleAxes = True
- .ChartAreas("ChartArea1").Area3DStyle.WallWidth = 0
- .ChartAreas("ChartArea1").Area3DStyle.Inclination = 1
- .ChartAreas("ChartArea1").BackColor = Color.Transparent
- .ChartAreas("ChartArea1").Area3DStyle.Rotation = 0
- .ChartAreas("ChartArea1").Area3DStyle.Inclination = 0
- .Series("Series1").ChartType = SeriesChartType.Bar
- .Series("Series1").BorderColor = Color.WhiteSmoke
- .Series("Series1")("DrawingStyle") = "Cylinder"
- Dim i As Integer = 0
- For i = 0 To 1
- .Series("Series1").Points.AddXY(xVal(i), yval(i))
- Select Case i
- Case 0
- .Series("Series1").Points(i).Color = Color.OldLace
- Case 1
- .Series("Series1").Points(i).Color = Color.MediumAquamarine
- End Select
- Next
- Dim format As ChartImageFormat = ChartImageFormat.Png
- format = ChartImageFormat.Png
- SaveImage("C:\tmp\testa.png")
- End With
Einfach zu handhaben und sieht dazu noch super aus!