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 - XML text labels not imported
Summary: XML text labels not imported
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.12154
Hardware: PC Windows
: Normal minor
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-16 05:04 EST by narcís calvet
Modified: 2015-01-16 09:40 EST (History)
1 user (show)

See Also:
Chart Series: Polar
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 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");
    }