Dear Forums User,
I am German and that's why I will apologize for grammar mistakes I will make in this text.
I have a Problem with Bar Charts.
I want to create a Bar Chart with 2 Series.
chart1.series(0) = "disease rate"
chart1.series(1) = "mortality rate"
It shall look almost like this:
http://0.tqn.com/d/spreadsheets/1/0/...bar_graph1.gif
Instead of Years there shall be the Disease Name. VB.NET is grouping the numbers correctly but it does not Label the y-Axis correctly.
I am German and that's why I will apologize for grammar mistakes I will make in this text.
I have a Problem with Bar Charts.
I want to create a Bar Chart with 2 Series.
chart1.series(0) = "disease rate"
chart1.series(1) = "mortality rate"
Code:
Private Sub frm_statistics_Load(sender As Object, e As EventArgs) Handles MyBase.Load
dim drate() as Integer = {1000,2000,3000,4000,5000} ' Examples
dim mrate() as Integer = {500,1000,1500,2000,2500}
dim dlabel() As String = {"Cancer", "Virus", "Bacteria", "Prions","Other"}
For i as Integer = 0 To 4
Me.Chart1.Series(0).Points.Add(drate(i))
Me.Chart1.Series(1).Points.Add(mrate(i))
Me.Chart1.Series(0).Points(i).AxisLabel = dlabel(i)
Next
End Sub
http://0.tqn.com/d/spreadsheets/1/0/...bar_graph1.gif
Instead of Years there shall be the Disease Name. VB.NET is grouping the numbers correctly but it does not Label the y-Axis correctly.