24 lines
649 B
C#
24 lines
649 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Microsoft.Research.DynamicDataDisplay.ViewportRestrictions;
|
|
|
|
namespace Microsoft.Research.DynamicDataDisplay.Charts
|
|
{
|
|
public class VerticalDateTimeAxis : DateTimeAxis
|
|
{
|
|
public VerticalDateTimeAxis()
|
|
{
|
|
Placement = AxisPlacement.Left;
|
|
Restriction = new DateTimeVerticalAxisRestriction();
|
|
}
|
|
|
|
protected override void ValidatePlacement(AxisPlacement newPlacement)
|
|
{
|
|
if (newPlacement == AxisPlacement.Bottom || newPlacement == AxisPlacement.Top)
|
|
throw new ArgumentException(Strings.Exceptions.VerticalAxisCannotBeHorizontal);
|
|
}
|
|
}
|
|
}
|