some fixes to BarChart feed.
This commit is contained in:
@@ -5183,10 +5183,16 @@ namespace MarketData.Helper
|
||||
String name = nameValue[0].Replace("\"", null);
|
||||
String value = nameValue[1].Replace("\"",null);
|
||||
double result = 0.00;
|
||||
if (barChartValues.ContainsKey(name)) continue;
|
||||
if (double.TryParse(value, out result))
|
||||
{
|
||||
barChartValues.Add(name, result);
|
||||
if (barChartValues.ContainsKey(name))
|
||||
{
|
||||
barChartValues[name] = result;
|
||||
}
|
||||
else
|
||||
{
|
||||
barChartValues.Add(name, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
return barChartValues;
|
||||
|
||||
Reference in New Issue
Block a user