Hi,
I added this SfChart control using Spline Series with tooltip enabled and I'm getting this strange behaviour when I click on the data point the entire chart resizes (shrinks) itself and then few seconds later return back to its regular size. Strangely enough it is not happening all the time. My code:
foreach (var taskGroup in _groupedByTask)
{
var currentColor = GetNextColor(position);
var lineSeries = new SplineSeries
{
StrokeWidth = 2,
DataSource = GetAggregatedDataForTaskName(taskGroup, searchCriteria),
TooltipEnabled = true,
Label = taskGroup.Key,
Color = currentColor,
DataMarker =
{
ShowMarker = true,
ShowLabel = true,
MarkerWidth = 5,
MarkerHeight = 5,
MarkerColor = currentColor
},
};
position++;
_chart.Series.Add(lineSeries);
}
Attached archive with images demonstrating this resizing.
The chart itself is programatically added to LinearLayout with height and width set to match parent.
var layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
_reportView.AddView(_chartView, layoutParams);
What can I do to stop this from happening?
Many Thanks,
Milen
Attachment:
BeforeAndAfterClick_d147b087.rar