Silverlightツールキットで提供されているチャートコントロールを使用しています。
3つの軸を定義しました(以下のコード)。これで、チャートのシリーズはユーザーのコマンドで変更されます。原点の0値と最大軸値が表示されない場合があります。それらは必ずしも同時に欠落しているわけではありません。なぜこれが起こっているのか私にはわかりません。一連の値は、(0、1000)にバインドされているのと同じ範囲内にあります。この動作は正常ですか?
<chartingToolkit:Chart.Axes>
<chartingToolkit:LinearAxis x:Name="LeftYAxis"
Orientation="Y"
Location="Left"
BorderThickness="0.5"
>
<chartingToolkit:LinearAxis.AxisLabelStyle>
<Style TargetType="chartingToolkit:AxisLabel" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="chartingToolkit:AxisLabel">
<Grid Background="Transparent">
<Border x:Name="AxisLabelMarker"
Background="Transparent"
BorderBrush="Blue"
BorderThickness="0"
>
<TextBlock Text="{Binding}"
Grid.Column="0"
/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</chartingToolkit:LinearAxis.AxisLabelStyle>
</chartingToolkit:LinearAxis>
<chartingToolkit:CategoryAxis Orientation="X"
Title="Percentage Increase in Bid Value"
Location="Bottom"
BorderThickness="0.5"
>
<chartingToolkit:CategoryAxis.AxisLabelStyle>
<Style TargetType="chartingToolkit:AxisLabel" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="chartingToolkit:AxisLabel">
<Grid Background="Transparent">
<Border x:Name="AxisLabelMarker"
Background="Transparent"
BorderBrush="Blue"
BorderThickness="0"
>
<TextBlock Text="{Binding}"
Grid.Column="0"
/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</chartingToolkit:CategoryAxis.AxisLabelStyle>
</chartingToolkit:CategoryAxis>
<chartingToolkit:LinearAxis x:Name="RightYAxis"
Orientation="Y"
Location="Right"
BorderThickness="0.5"
>
<chartingToolkit:LinearAxis.AxisLabelStyle>
<Style TargetType="chartingToolkit:AxisLabel">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="chartingToolkit:AxisLabel">
<TextBlock Text="{Binding}"
/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</chartingToolkit:LinearAxis.AxisLabelStyle>
</chartingToolkit:LinearAxis>
</chartingToolkit:Chart.Axes>