Page 1 of 1

Problem with plotting bar graph

Posted: Sun Oct 08, 2017 7:37 am
by 15681539
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

Re: Problem with plotting bar graph

Posted: Mon Oct 09, 2017 11:32 am
by Christopher
Hello Rob,

Yes, this issue was resolved in issue number 1794:
http://bugs.teechart.net/show_bug.cgi?id=1794

the resolution is present in build 4.1.2017.02140 released on 14th March 2017.

Re: Problem with plotting bar graph

Posted: Mon Oct 09, 2017 12:06 pm
by 15681539
Brilliant. Thanks Christopher. I will download and install latest TeeChart now.

Cheers
Rob

Re: Problem with plotting bar graph

Posted: Tue Oct 10, 2017 9:12 am
by 15681539
Have downloaded and installed TeeChart .NET Version 4.1.2017.2142. Install ran fine - no problem. I removed the reference to the older version and added the latest TeeChart.dll to the .NET references for my application (screen shot attached).

When I build and run my application I get the error that code generation could not load the old TeeChart.dll or one of its dependencies (screen shot attached).

Is there something else I have to change to update Visual Studio 2015 and my application to use the Version 4.1.2017.2142?

Thanks
Rob

Re: Problem with plotting bar graph

Posted: Tue Oct 10, 2017 10:02 am
by 15681539
Success!

I uninstalled and reinstalled the latest .NET version of TeeChart and all is working fine now.

Best Regards
Rob