Reputation: 6378
I'm using DataVisualization from WPF Toolkit.
I'm using LineSeries to show the data in the graph. But there's an inconvenience.
Is possible that the line start in zero? I have drawed a red line, I'd like to show it.
This is the code what I'm using:
<ChartTools:Chart x:Name="SubobjectivesChart" Background="LightSteelBlue">
<ChartTools:Chart.Axes>
<ChartTools:LinearAxis Orientation="Y" ShowGridLines="True" Minimum="0" Maximum="1" />
</ChartTools:Chart.Axes>
<ChartTools:Chart.Series>
<ChartTools:ColumnSeries Title="Exam" ItemsSource="{Binding Subobjectives}" Background="Black" IndependentValueBinding="{Binding Exercise}" DependentValueBinding="{Binding Average}" >
</ChartTools:ColumnSeries>
</ChartTools:Chart.Series>
</ChartTools:Chart>
Upvotes: 0
Views: 1526
Reputation: 1129
This may not be true for WPF, but using the Forms designer I found an IsMarginVisible
property for my project. It's under ChartArea > Axis > Scale
.
Although, I may not be fully understanding the question. If you really want it to go to zero, there is an "EmptyPointValue" option under Series > Misc > CustomPropertes
. Could set that to "Zero".
Upvotes: 2
Reputation:
No it's not and it shouldn't be possible. Chart is just a visual representation provider for your data. Just change your data accoridngly by rounding it down.
Upvotes: 2