Problem with plotting bar graph
Posted: Sun Oct 08, 2017 7:37 am
I am having a small issue plotting a simple bar chart.
The problem I'm having is that the first data point plotting a bar chart appears as a single line rather than a bar. Here is a link to a small video demonstrating the problem
ftp://innervations.dyndns-server.com/DO ... roblem.MP4
Here is a snippet of the source code that actually updates the TeeChart:
If Val(LabelCount.Text) > bars Then 'to stop add the same bar twice
If targetmet Then
If CheckBoxAudioFeedback.Checked Then My.Computer.Audio.Play(oversoundfile, AudioPlayMode.Background)
Bar1.Add(Val(LabelCount.Text), Val(LabelValue.Text), Color.Green)
bars = bars + 1
Else
If CheckBoxAudioFeedback.Checked Then My.Computer.Audio.Play(undersoundfile, AudioPlayMode.Background)
Bar1.Add(Val(LabelCount.Text), Val(LabelValue.Text), Color.Red)
bars = bars + 1
End If
End If
Any assistance to resolve this issue would be greatly appreciated.
Sincerely,
Rob
The problem I'm having is that the first data point plotting a bar chart appears as a single line rather than a bar. Here is a link to a small video demonstrating the problem
ftp://innervations.dyndns-server.com/DO ... roblem.MP4
Here is a snippet of the source code that actually updates the TeeChart:
If Val(LabelCount.Text) > bars Then 'to stop add the same bar twice
If targetmet Then
If CheckBoxAudioFeedback.Checked Then My.Computer.Audio.Play(oversoundfile, AudioPlayMode.Background)
Bar1.Add(Val(LabelCount.Text), Val(LabelValue.Text), Color.Green)
bars = bars + 1
Else
If CheckBoxAudioFeedback.Checked Then My.Computer.Audio.Play(undersoundfile, AudioPlayMode.Background)
Bar1.Add(Val(LabelCount.Text), Val(LabelValue.Text), Color.Red)
bars = bars + 1
End If
End If
Any assistance to resolve this issue would be greatly appreciated.
Sincerely,
Rob