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 2075

Summary: marks visibility in subchart of scroll page tool can't set while initialization phase
Product: .NET TeeChart Reporter: truthtracer
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: regression CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: sample project

Description truthtracer 2018-08-15 04:42:42 EDT
Created attachment 845 [details]
sample project

tchart version 2018.05.04

I want a chart line with marks and a scroll page.

Current version user can set series attributes in init phase but can NOT set the different attributes on chart series and subchart series(such as marks visibility).

Although I understand the subchart may not have real instance that monment, and user was forced to set subchart attribute at runtime, but is it possible to give a chance to set the subchart series attributes while init phase ?

plz see the scroll page labels in example project (I want scroll page not show the marks and set marks visible = false in init phase)
Comment 1 christopher ireland 2018-08-17 07:11:29 EDT
One way round this issue is to clone your series before assigning it to the scrollpager:

series.FillSampleValues(10);
series.YValues[2] = 0;
series.YValues[4] = 1;

FastLine clone = series.Clone() as FastLine;
clone.XValues.Value = series.XValues.Value;
clone.YValues.Value = series.YValues.Value;
clone.XValues.Count = series.XValues.Count;
clone.YValues.Count = series.YValues.Count;
clone.Marks.Visible = false;

tool.Series = clone;
tool.DivisionRatio = 8D;
tool.EndValue = 0D;
tool.StartValue = 0D;
tool.Active = true;