Gauges
Posted: Wed Mar 05, 2014 10:26 am
When I add a gauge, it show the legend, but If i export it and load it again the legend isn't there.
Thanks
Thanks
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
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)
{
string path = @"c:\gauges.ten";
tChart1.Export.Template.IncludeData = false;
tChart1.Export.Template.Save(path);
}
private void button3_Click(object sender, EventArgs e)
{
string path = @"c:\gauges.ten";
tChart1.Import.Template.Load(path);
}