Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1726

Summary: Chart rendering diffrently while upgrade TeeChart Version 1.1 (old) to Latest
Product: .NET TeeChart Reporter: Deepak Verma <deepak.verma>
Component: WebChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris, sandra
Priority: High    
Version: TeeChart.NET 2014 4.1.2014.02060   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: ScreenShot-Charts Rendering before and after update dll version
screen shot properties
Issues and code used
screenshot
Charts Rendering from Area Charts sample code
Area Test project
BugAreaChartRenderIssue.zip
Stacked 100 Custom Series Problem
Rendering Bug with new chart dll and compare with excel
WebAreaTest
AreaResultsNotExcelwithFillSampleValues
SameAreaResultsThanExcel
Area chart showing negative values
Area horizontal Issue
Area vertical and horizontal test
Line horizontal issue
Are horizontal test project correct rendering
Area Horizonal project

Description Deepak Verma 2016-12-21 08:45:27 EST
Hi Team, I have created bug 1696 for other issues find while upgrade TeeCharts from 1.1 to latest version.But I created this Bug for another issue which is for bar charts and region charts rendering differently. Please refer attached screen shots. Please suggest why these charts rendering differently.

We analyze and found some properties which are different in TeeChart version 1.1 and latest version, please suggest if any of these property these charts rendering differently:
Comment 1 Deepak Verma 2016-12-21 08:46:06 EST
Created attachment 681 [details]
ScreenShot-Charts Rendering before and after update dll version
Comment 2 Deepak Verma 2016-12-21 08:47:05 EST
Created attachment 682 [details]
screen shot properties
Comment 3 christopher ireland 2016-12-22 03:07:06 EST
Hello Deepak,

Please be aware that this issue tracker is not for technical support. For technical support, please post your issues to http://support.steema.com. 

In the case of problems with upgrading TeeChart.dll from a version which is over ten years old, could you please be so kind as give me some code which I can run here so I can reproduce your issues? Just by looking at your screenshots I cannot tell what the problems are. 

Thank you.
Comment 4 Deepak Verma 2016-12-27 01:14:04 EST
Created attachment 686 [details]
Issues and code used

Hi Christopher, Please find issues and code used for those charts. Please suggest solution for this. Thanks
Comment 5 christopher ireland 2016-12-27 05:02:47 EST
Hello Deepak,

Thank you for the document, but the code examples you sent for the first three issues are not "Minimal, Complete, and Verifiable examples (MCVE)" as specified here:

http://stackoverflow.com/help/mcve

without a full MCVE for each issue I cannot reproduce it here and so cannot attempt to find a resolution.

I would like to remind you again, as I did in my last message, that the correct forum for technical support is:

http://suppport.steema.com

this site, http://bugs.teechart.net, is an issue tracker by which issues (bugs, enhancements) are registered, and is not a technical support forum.
Comment 6 Deepak Verma 2016-12-27 22:43:05 EST
Hi Christopher, I am writing here in bug tracker because Steema offers backward compatibility from old TeeChart dll to new, but we are getting many issues while upgraded to new version. Seems like these are bugs and due to these, backward compatibility can not offer. This is urgent for us, and tech forum can take longer time and also could not find much option to post issue  there, So I am writing here.

The code I shared with this document, i common for all charts, we majorly have problem with Area- region charts

Which is like when call write chart 
call createchart() method, which create different type of charts, with different case, please check code once agin and let me know if still have questions.
Comment 7 christopher ireland 2016-12-28 05:55:32 EST
Created attachment 689 [details]
screenshot

Hello Deepak,

this is how the code you posted in your Word document appears in Visual Studio - 30 errors, some of which can be seen in the screenshot attached. 

Did you read the link I posted on this thread on "How to create a Minimal, Complete, and Verifiable example"? Here is the link again:

http://stackoverflow.com/help/mcve

the point I want to make here is that an MCVE actually compiles without error. This is not the case with the example you have sent us.

Would you please be so kind as to post an MCVE for each problem you have in a separate thread on http://support.steema.com? That would be greatly appreciated. Thank you.
Comment 8 Deepak Verma 2017-01-03 08:14:15 EST
Hi Christopher,

I have updated Teechart Sample Webapp VHArea.aspx.cs page to render Area/Region chart, You can replace the below function in TeeChartForNET\Chart Styles\Standard\VHAreaChart.aspx.cs, to replicate issue, I have added sample data having negative and positive values

 private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
              {
                   WebChart1.Chart.Series.RemoveAllSeries();
                     switch (DropDownList1.SelectedIndex)
                     {
                           case 0:                    
                    var area = new Steema.TeeChart.Styles.Area();
                    area.MultiArea =  Steema.TeeChart.Styles.MultiAreas.Stacked100;
                    area.Stacked = Steema.TeeChart.Styles.CustomStack.Stack100;
                    area.AreaLines.Color = Color.Black;
                    area.Opacity = 0;
                    area.Transparency = 100;
                    area.AreaBrush.Color = Color.White;
                    area.Color = Color.Red;
                    for (int i = -5; i < 10; i += 2)
                    {
                        area.Add(i, "Description", System.Drawing.Color.Red);
                    }
                    WebChart1.Chart.Series.Add(area);

                    var area2 = new Steema.TeeChart.Styles.Area();
                    area2.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked100;
                    area2.Stacked = Steema.TeeChart.Styles.CustomStack.Stack100;
                    area2.AreaLines.Color = Color.Black;
                    area2.Opacity = 0;
                    area2.Transparency = 100;
                    area2.AreaBrush.Color = Color.White;
                    area2.Color = Color.Green;
                    for (int i = 10; i > -5; i -= 2)
                    {
                        area2.Add(i, "Description", System.Drawing.Color.Green);
                    }
                    WebChart1.Chart.Series.Add(area2);                   
                    break;
                           case 1:                                  
                    var area3 = new Steema.TeeChart.Styles.HorizArea();
                    area3.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked100;
                    area3.Stacked = Steema.TeeChart.Styles.CustomStack.Stack100;
                    area3.AreaLines.Color = Color.Black;
                    area3.Opacity = 0;
                    area3.Transparency = 100;
                    area3.AreaBrush.Color = Color.White;
                    area3.Color = Color.Red;
                    for (int i = -5; i < 10; i += 2)
                    {
                        area3.Add(i, "Description", System.Drawing.Color.Red);
                    }
                    WebChart1.Chart.Series.Add(area3);

                    var area4 = new Steema.TeeChart.Styles.HorizArea();
                    area4.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked100;
                    area4.Stacked = Steema.TeeChart.Styles.CustomStack.Stack100;
                    area4.AreaLines.Color = Color.Black;
                    area4.Opacity = 0;
                    area4.Transparency = 100;
                    area4.AreaBrush.Color = Color.White;
                    area4.Color = Color.Green;
                    for (int i = 10; i > -5; i -= 2)
                    {
                        area4.Add(i, "Description", System.Drawing.Color.Green);
                    }
                    WebChart1.Chart.Series.Add(area4);
                    break;
                     }
                     WebChart1.Chart.Series[0].FillSampleValues();          
              }



Please suggest, what is the reason for rendering negative values in TeeChart new DLL but old chart do not render negative values for area/Region charts
Comment 9 Deepak Verma 2017-01-03 08:17:04 EST
Created attachment 690 [details]
Charts Rendering from Area Charts sample code
Comment 10 Deepak Verma 2017-01-09 05:18:47 EST
Hi Christopher and Team, Could you please response of above issue, as this is very urgent.
We need to know about area charts which rendering is correct , with latest DLL or with old one, and if new DLL area charts rendering is not correct, please suggest fix for this. Thanks
Comment 11 sandra pazos 2017-01-11 12:13:36 EST
Hello Deepak,
After doing some test, I would like inform you we have found that disabling the UseOrigin property, the problem works seems solved in Winforms project. I have attached the project, in the bug, because you can check if it works as you expect. Could you confirm it us? 

Also, we have done the same test, in Demo Asp, but not always I can get the same result as WinForms. Could you do the same test as us, to confirm the problem persist? Below I have attached the code we have used. 

Many thanks for your help.
Comment 12 sandra pazos 2017-01-11 12:16:09 EST
Created attachment 692 [details]
Area Test project
Comment 13 Deepak Verma 2017-01-23 05:51:19 EST
Hi Sandra,
We tried to disable useOrigin property and result still same. We used winform sample as you send and tried with negative values and negative values are rendering with new TeeChart dll version. We (Dev Teeam) still not sure if negative values rendering is correct or not, and wants confirmation from Steema side if they can explain how area charts is rendered. Right now rendering is completely different with old and new dll for TeeChart.

Which means area charts are not rendering as we expecting and as previously render with old TeeCHart DLL.

Please explain if your team know that these new DLL rendering is correct or please explain how Steema rendering area charts.

As you asked, webform is rendering diffrent chart every time when load chart with same data.

Many thanks for your help.
Comment 14 sandra pazos 2017-01-31 11:17:10 EST
Hello Deepak,

Could you add the data file you use in “ScreenShot-Charts Rendering before and after update dll version” image, because we can use the same data values to do the rendering area test? You can attach that exporting the chart data in .txt or csv.  

Thanks for your help
Comment 15 Deepak Verma 2017-02-10 01:15:25 EST
Hi Sandra, Hi Christopher,

As you suggested, we prepared sample data and used this data to render Area/Region chart using TeeChart old DLL (version 1.1) and TeeCharts new DLL ( version 4.1.2014…) and using same data we rendered Area/Region chart from Microsoft Excel. We found that Excel and old DLL chart are rendered same , which is also correct but with new DLL, charts are completely different.

Now we can confirm that Area/Region chart rendering with new TeeCharts DLL version 4.x.xxx.xxxx is not rendering correctly and this bug in TeeCharts, which must be fixed.

I have attached the following files into BugAreaChartRenderIssue.zip file:
1-	Data file
2-	Screen shot from old chart DLL rendering
3-	MS Excel used to render chart 
4-	Steema demo sample project file with above data – VHAreaChart.aspx.cs and Screen Shot 

Please investigate and fix this issue as this is very critical matter for us now and due to this we cannot release latest version of our product.

Please feel free if anything not clear or need discussion. Also Please suggest if we can have chat/call/webex meeting to discuss this to resolve this quickly.
Comment 16 Deepak Verma 2017-02-10 01:17:32 EST
Created attachment 709 [details]
BugAreaChartRenderIssue.zip
Comment 17 Deepak Verma 2017-02-22 00:33:08 EST
Hi Team,
Please suggest fix for this issue for chart rendering, as this is already few month to raise this issue and we are unable to implement New charts to our application. This is now very critical for us.
Thanks
Comment 18 sandra pazos 2017-02-23 12:27:56 EST
Created attachment 722 [details]
Stacked 100 Custom Series Problem
Comment 19 sandra pazos 2017-02-23 12:33:04 EST
Hello Deepak,

Sorry for the delay. 

Well, after doing some several tests we concluded it is a bug caused for Stack100 property. 

The problem is produced because the Stack100 isn’t calculated in same way for CustomSeries than BarSeries. Therefore, the Stack100 calculation isn’t correct for CustomSeries, for example, Area Series. 

The attached project reproduces the problem.
Comment 20 Deepak Verma 2017-02-24 02:28:35 EST
Hi Sandra, Thanks for your response and analysis.
I could not understand if this bug has been fixed or please provide us details what we need to implement to fix this issue our side. Thanks
Comment 21 sandra pazos 2017-02-24 04:14:54 EST
Hello Deepak,

The bug isn't still fixed, but I have incremented the Severity and Priority because the bug is fixed as soon as possible.
We will inform you immediately the bug is fixed

Thanks in advance
Comment 22 sandra pazos 2017-02-28 05:06:46 EST
Hello Deepak,

I would like inform you the bug is already fixed for next maintenance release. 
If you have the Teechart.Net 4.1.2016.10265 source code, we can send you the fix. 

Thanks in advance
Comment 23 Deepak Verma 2017-03-04 11:52:23 EST
Thank you very much Sandra for fixing the issue.

We are not using VS2016 version.

Our solution is build in .Net 4.0 and we are using VS2015. Please provide fixed DLL for this version.

Thanks
Comment 24 Deepak Verma 2017-03-20 01:36:57 EDT
Hi Sandra and Team,

Please provide us fixed DLL for version mentioned in last comment because we are not using latest version which you have fixed. Please suggest if need to create new bug report or this can be provided in this bug report. Thanks
Comment 25 Deepak Verma 2017-03-20 01:39:19 EDT
ALso the version already mentioned in bug report for component version. Thanks
Comment 26 sandra pazos 2017-03-20 07:04:43 EDT
Hello Deepak,

I would like inform you I have sent a new email today.


Thanks in advance for your patience
Comment 27 Deepak Verma 2017-03-23 06:23:14 EDT
Hi Sandra,

We verified the fixes provided by you for TeeChart.dll .net framework 4.0, but sorry to say , this still showing wrongly. Please find attached images for charts rendering with given TeeChart DLL and same data using Excel charts.

Please have a look and provide fix for this. I am sorry to come again and again for this but now almost 4-5 months for this issue and really very critical for us now as soon our release for product.

Thanks in advance.
Comment 28 Deepak Verma 2017-03-23 06:24:12 EDT
Created attachment 736 [details]
Rendering Bug with new chart dll  and compare with excel
Comment 29 sandra pazos 2017-03-23 08:16:11 EDT
Hello Deepak,

I have attached a WebAreaTest project, done with your data. 
The behaviour you experiencing is caused for the line ch1.Series[0].FillSampleValues() there is in the code you sent us. The line added aleatory values in the Area1 altering the final results. You can check that in the image attached AreaResultsNotExcelwithFillSampleValues.jpg
If you remove the line, the result you can get is similar as excel. You can check it with image attached SameAreaResultsThanExcel.jpg

Please, use attached project to do tests. 

Hoping this helps
Regards
Comment 30 sandra pazos 2017-03-23 08:17:26 EDT
Created attachment 738 [details]
WebAreaTest
Comment 31 sandra pazos 2017-03-23 08:18:22 EDT
Created attachment 739 [details]
AreaResultsNotExcelwithFillSampleValues
Comment 32 sandra pazos 2017-03-23 08:19:03 EDT
Created attachment 740 [details]
SameAreaResultsThanExcel
Comment 33 Deepak Verma 2017-04-05 22:47:30 EDT
Hi Sandra,

Thank you very much for resolving this issue for Area vertical. Now area vertical chart is looking exactly same as excel sample we provided.

But we need you help to display this chart same way this was with old implementation., after your changes, this showing negative value as well, but previously this was displaying on positive values, and our requirement is also to display positive values only. Please see example attached (Area chart negative value showing.png file)and suggest which property can help us to show positive values.

Another issue we are found after your implementation for Area Vertical charts which is not displaying at all, previous to these changes, this was displaying wrongly but now this is showing like attached example (Area Horizontal issue.png file).
                                    
please suggest, what is the issue for this and how we can fix this. 

Thank in advance for your help and support.
Comment 34 Deepak Verma 2017-04-05 22:48:45 EDT
Created attachment 748 [details]
Area chart showing negative values
Comment 35 Deepak Verma 2017-04-05 22:49:13 EDT
Created attachment 749 [details]
Area horizontal Issue
Comment 36 Deepak Verma 2017-04-13 02:54:45 EDT
Hi Team, Typo in last comments, We are having rendering issue now in Area Horizontal chart as per attached (Area horizontal Issue file).

Vertical chart is fine now, and Thank you for resolving issue for that.

Please suggest and fix bug for Area Horizontal ASAP because this is very critical for us, and now almost 6 months when we raise this bug to Steema.

Thank You
Comment 37 sandra pazos 2017-04-18 05:35:27 EDT
Created attachment 756 [details]
Area vertical and horizontal test
Comment 38 sandra pazos 2017-04-18 05:42:10 EDT
Hello Deepak

I have modified the WebAreaTest project, because the Horizontal area draws in correct way. Could you check and confirm, if the change fixes the problem? 

Thanks in advance
Comment 39 Deepak Verma 2017-04-18 05:57:08 EDT
Hi Sandra,

Could you please suggest which version of DLL you are using for this code, so that I can verify.
Comment 40 sandra pazos 2017-04-18 06:03:01 EDT
Hello Deepak,

I have used the latest Teecahrt.dll 4.1.2017.03140 for .Net40. 

Thanks in advance
Comment 41 Deepak Verma 2017-04-18 06:31:01 EDT
Thank You Sandra, I checked the demo project and this is rendering horizontal chart now, I will try this with our application and let you know if this solve our problem or not.
But I noticed with demo/test project you just provided, that this is showing negative values. Our requirement is, even if database have negative value, chart do not need to show, means chart will always show value greater the zero. Could you please suggest in given demo test project, how we can show only positive values.
Thank you very much for your response and help.
Comment 42 Deepak Verma 2017-04-18 06:43:19 EDT
Hi Sandra, Another small issue we found after your last fix for area chart, now with new DLL, line horizontal chart x axis label not showing correctly and showing black line and also background showing in gray color. Can you please check this as well.
Comment 43 Deepak Verma 2017-04-18 06:44:18 EDT
Created attachment 757 [details]
Line horizontal issue
Comment 44 Deepak Verma 2017-04-19 03:44:08 EDT
Created attachment 758 [details]
Are horizontal test project correct rendering

Hi Sandra, Correct rendering for area horizontal should be similar to attached project, Not like rendering in Test Project you send. Please fix accordingly. Thanks
Comment 45 Deepak Verma 2017-04-24 23:04:32 EDT
Hi Sandra and Team, 
Please suggest fix for area charts rendering issues, We have our product release date soon so this is very urgent matter for us. This has been delayed 1 release already. Please look into this bug on urgent basis. 
Thanks
Comment 46 sandra pazos 2017-04-25 04:40:02 EDT
Created attachment 759 [details]
Area Horizonal project
Comment 47 sandra pazos 2017-04-25 04:45:20 EDT
Hello Deepak Verma,

I have modified the project because it only uses the values biggest than 0. Could you told us if it represents the values in your end? 

Thanks in advance