if (series is CartesianSeries)
{
CartesianSeries cartesianSeries = series as CartesianSeries;
bool isshowtrackball = cartesianSeries.ShowTrackballInfo;
var axis = cartesianSeries.YAxis;
}
|
private void UpdateZoomFactor()
{
foreach (var ser in FastLine.Series)
{
if (ser is FastLineBitmapSeries)
{
FastLineBitmapSeries fastLineBitmap = ser as FastLineBitmapSeries;
if ((from s in tracesParams
where s.tag == fastLineBitmap.Label
select s.blockZoomFactor).Single())
{
fastLineBitmap.YAxis.ZoomFactor = 1;
fastLineBitmap.YAxis.ZoomPosition = 1;
}
else
{
fastLineBitmap.YAxis.ZoomFactor = FastLine.SecondaryAxis.ZoomFactor;
fastLineBitmap.YAxis.ZoomPosition = FastLine.SecondaryAxis.ZoomPosition;
}
}
}
}
private void UpdateTrackballAndAxis()
{
foreach (var ser in FastLine.Series)
{
if (ser is FastLineBitmapSeries)
{
FastLineBitmapSeries fastLineBitmap = ser as FastLineBitmapSeries;
fastLineBitmap.ShowTrackballInfo = (from s in tracesParams
where s.tag == fastLineBitmap.Label
select s.isOnSlider).Single();
fastLineBitmap.YAxis.Visibility = (from s in tracesParams
where s.tag == fastLineBitmap.Label
select s.isAxisVisible).Single() ? Visibility.Visible : Visibility.Collapsed;
}
}
}
|
if (fastLineBitmap.YAxis is NumericalAxis)
{
(fastLineBitmap.YAxis as NumericalAxis).Minimum = 100;
(fastLineBitmap.YAxis as NumericalAxis).Maximum = 500;
}
|