Hello folks,
Recently i got a problem when display the RadChart by using CandleStickSeriesDefinition.
The definition of the series is as follows,
_mainSeriesMapping.SeriesDefinition =
new
CandleStickSeriesDefinition();
_mainSeriesMapping.SeriesDefinition.Appearance.StrokeThickness = 1;
_mainSeriesMapping.SeriesDefinition.Appearance.Stroke =
new
SolidColorBrush(Colors.Green);
_mainSeriesMapping.SeriesDefinition.Appearance.Fill =
new
SolidColorBrush(Colors.Green);
_mainSeriesMapping.SeriesDefinition.ShowItemToolTips =
true
;
var imHigh =
new
ItemMapping(
"HighPrice"
, DataPointMember.High);
var imLow =
new
ItemMapping(
"LowPrice"
, DataPointMember.Low);
var imOpen =
new
ItemMapping(
"OpenPrice"
, DataPointMember.Open);
var imClose =
new
ItemMapping(
"ClosePrice"
, DataPointMember.Close);
var imXDate =
new
ItemMapping(
"ProcessDateTime"
, DataPointMember.XValue);
var imYDate =
new
ItemMapping(
"ClosePrice"
, DataPointMember.YValue);
_mainSeriesMapping.ItemMappings.Add(imHigh);
_mainSeriesMapping.ItemMappings.Add(imLow);
_mainSeriesMapping.ItemMappings.Add(imOpen);
_mainSeriesMapping.ItemMappings.Add(imClose);
_mainSeriesMapping.ItemMappings.Add(imXDate);
_mainSeriesMapping.ItemMappings.Add(imYDate);
rcProduct.SeriesMappings.Add(_mainSeriesMapping);
Then I bind to the my entity and got the picture as the attached file.
In the middle, there is a big gap, this is because in those two days(AxisX) are weekend and has no data. I just want to know how can i remove those weekend days in the chart and got the continuous data.
Thanks very much for your help.
George