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 619 - Series ShowInLegend property not serialized correctly when default false
Summary: Series ShowInLegend property not serialized correctly when default false
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Exporting (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-06 04:19 EST by christopher ireland
Modified: 2014-03-06 04:19 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2014-03-06 04:19:26 EST
Using a series type in which the ShowInLegend property is default false, when we set this property to true and export and import it the property value is lost, e.g.

    System.IO.MemoryStream stream;

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Clear();
      Steema.TeeChart.Styles.LinearGauge linearGauge = new Steema.TeeChart.Styles.LinearGauge(tChart1.Chart);
      linearGauge.Title = "titulo";
      linearGauge.Tag = "1\tx";
      linearGauge.ShowInLegend = true;
      linearGauge.RedLine.Visible = false;
      linearGauge.GreenLine.Visible = false;
      tChart1.Series.Add(linearGauge);

      tChart1.Series[0].FillSampleValues();
    }

    private void button2_Click(object sender, EventArgs e)
    {
      stream = new System.IO.MemoryStream();
      tChart1.Export.Template.Save(stream);
    }

    private void button3_Click(object sender, EventArgs e)
    {
      stream.Position = 0;
      tChart1.Import.Template.Load(stream);

     // tChart1[0].ShowInLegend = true;
    }