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 1089

Summary: XML text labels not imported
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: minor CC: nagai
Priority: Normal    
Version: TeeChart.NET 2014 4.1.2014.12154   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: Polar Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2015-01-16 05:04:06 EST
Text labels are not being imported from XmlSource datasource as can be seen using the code snippet below. The XML file contains the text labels but they are not being imported when pressing the button.

    public Form1()
    {
      InitializeComponent();
      InitializeChart();
    }

    private void InitializeChart()
    {
      var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);

      Random y = new Random();
      for (int i = 0; i < 5; i++)
      {
        bar1.Add(y.Next(), "hello");
      }

      tChart1.Export.Data.XML.Save(@"Chart1.xml");
    }

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Clear();

      Steema.TeeChart.Data.XmlSource xmlData = new Steema.TeeChart.Data.XmlSource();
      xmlData.Chart = tChart1.Chart;
      xmlData.Load(@"Chart1.xml");
    }