Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why does the chart make .5 intervals on the grid

Status
Not open for further replies.

PKamhaw

Programmer
Dec 1, 2011
1
0
0
US
IN this C# WPF app I am displaying a small chart that has a count of number of patients per day. here you can see the last 2 have this issue, the code is for the one on the left


<Button x:Class="OPDashboard.Common.Modules.CNAPoorEating.Views.CnaPoorEatingTileView"
xmlns=" xmlns:x=" xmlns:mc=" xmlns:d=" xmlns:dx=" xmlns:vc="clr-namespace:Visifire.Charts;assembly=WPFVisifire.Charts"

mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
MinHeight="{StaticResource TileMinHeight}"
MinWidth="{StaticResource TileMinWidth}"
MaxHeight="{StaticResource TileMaxHeight}"
MaxWidth="{StaticResource TileMaxWidth}"
Command="{Binding Command}"
Template="{StaticResource TileControlTemplate}" >

<StackPanel Orientation="Vertical"
dx:ThemeManager.ThemeName="Office2007">
<vc:Chart x:Name="CNA_PoorEating"
Watermark="False"
Width="Auto"
Height="Auto"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
MinHeight="200"
MinWidth="{StaticResource ChartMinWidth}"
CornerRadius="11,11,11,11"
RenderTransformOrigin="0.5,0.5"
FontSize="8"
Background="Transparent">
<vc:Chart.PlotArea>
<vc:plotArea Background="#00000000" />
</vc:Chart.PlotArea>
<vc:Chart.Titles>
<vc:Title Text="How many patients did not eat 50% in the past week" />
</vc:Chart.Titles>
<vc:Chart.AxesX>
<vc:Axis IntervalType="Days"
ValueFormatString="MMM-d"
Interval="1">
<vc:Axis.AxisLabels>
<vc:AxisLabels Angle="0" />
</vc:Axis.AxisLabels>
</vc:Axis>
</vc:Chart.AxesX>
<vc:Chart.Series>
<vc:DataSeries RenderAs="Column"
DataSource="{Binding CnaPoorEatingSource}"
XValueFormatString="MMM-d">
<vc:DataSeries.DataMappings>
<vc:DataMapping MemberName="XValue"
Path="Day" />
<vc:DataMapping MemberName="YValue"
Path="Count" />
</vc:DataSeries.DataMappings>
</vc:DataSeries>
</vc:Chart.Series>

</vc:Chart>

</StackPanel>

</Button>
 
is this the infringtics, or another vendor's control? if so asking on their support forum would provide the best response. however, I would start with RenderTransformOrigin="0.5,0.5" there's a good chance this is creating the half step increments.

Jason Meckley
Senior Programmer

faq855-7190
faq732-7259
My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top