Hi Devin,
The problem we spotted are:
1. The code that configures the chart clears the chart panels but does not add chart to the panels collection, leading to a chart control without any content (SetupChartControl). This was also leading to null reference exception in SetutChartAxes
2. The code that feeds the data (GraphData) is called with a null argument for series (StudyData) so no series are added to the chart.
You need to revise the code that feeds data to the chart as currently in case there is null data the code creates some dummy data:
public virtual NLineSeries GraphData ( NChart chart, StudyData series, System.Drawing.Color lineColor )
{
if ( chart == null )
{
return null;
}
if ( series == null )
{
series = new NevronTest.StudyData(); // previously exiting here!
}
if ( series.Points == null || series.Points.Count == 0 )
{
return null;
}
Regarding the null reference exception - this is caused because the control tries to read the registry in order to obtain a license key, but does not have permissions - this exception is handled and is not a problem.
Hope this helps - let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team