• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

dotnetCHARTING Ignores Chart Properties set in Code

I am using Version 5.2.3313 which I downloaded for evaluation and is not yet registered.
Platform is Visual Studio 2008, .NET 3.5, Windows Vista Ultimate, C#

When Chart properties are set on the Design Page,  the chart is properly rendered.

Chart properties set in the aspx.cs page are ignored.
I get no error messages.

The chart simply displays No Data

Is this a limitation of the unregistered version ?

DataEngine de = new DataEngine(strStockSelectCon);
        SeriesCollection mySC = de.GetSeries();
        de.StoredProcedure = "usp_getPriceChart";
        de.ConnectionString = strStockSelectCon;
        de.StoredProcedure = "usp_getPriceChart";
        de.ParameterCollection.Clear();
        de.AddParameter("@FromDate", "2009-01-05", FieldType.Date);
        de.AddParameter("@ToDate", "2009-02-05", FieldType.Date);
        de.AddParameter("@SymbolID", "100", FieldType.Number);
       
        Chart1.Series.ConnectionString = strStockSelectCon;
        Chart1.Series.StoredProcedure = "usp_getPriceChart";
        Chart1.Series.ParameterCollection.Clear();
        Chart1.Series.AddParameter("@FromDate", "2009-01-05", FieldType.Date);
        Chart1.Series.AddParameter("@ToDate", "2009-02-05", FieldType.Date);
        Chart1.Series.AddParameter("@SymbolID", "100", FieldType.Number);
       
        Chart1.DataBind();
        Chart1.Visible = true;

Thanks,
0
Dovberman
Asked:
Dovberman
1 Solution
 
NazoUKCommented:
I don't know about this particular brand but are you aware that MS now gives away an official asp.net charting component? It's based on Dundas charts and is pretty fully featured. See here for more info:
http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx

Sorry I can't help with your specific problem though.
0
 
DovbermanAuthor Commented:
Thanks,

I had reviewed MS Charts. It requires upgrading from ASP.NET 3.5 to the 3.5 SP1 and VS2008 to SP1.

However, it may be worth the effort.

Thanks,
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now