【发布时间】:2012-02-07 09:51:03
【问题描述】:
我有一个看起来像这样的图表:
我希望它看起来像这样:
为此,我一直在使用 Dynamic Data Display 的 Isoline 库。
问题在于右上角的区域是彩色的,即使该区域中的所有值都是 0(这就是等值线停止的原因)。 有谁知道我是否可以调整我的 .xaml 文件,以便该区域仅显示白色背景颜色?
提前谢谢你,
客户体验
我当前的 .xaml 文件如下所示:
<Window x:Class="IntensityChart.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
Title="DynamicDataDisplay Sample - Intensity Chart" WindowState="Maximized"
Icon="{x:Static d3:D3IconHelper.DynamicDataDisplayWhiteIcon}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<d3:ChartPlotter Name="plotter" Grid.Row="0" Grid.Column="1">
<d3:ViewportHostPanel>
<Image Name="image" d3:ViewportPanel.ViewportBounds="0,0,2,1.5" Stretch="Fill"/>
</d3:ViewportHostPanel>
<d3:IsolineGraph Name="isolineGraph"/>
<d3:IsolineTrackingGraph Name="trackingGraph"/>
<d3:CursorCoordinateGraph/>
<d3:CursorCoordinateGraph/>
<d3:AxisCursorGraph/>
</d3:ChartPlotter>
</Grid>
【问题讨论】:
-
你确定它是空的吗?右上角的蓝色表示不是?
-
嗨,我要开发一个等值线图,就像你拥有的那样,但不知道怎么做:) 你能发布你的代码 xaml 和 c# 吗? :)
-
恐怕我没有代码了,但如果我记得他们的网站上有很多示例代码可用。您应该能够复制/粘贴大部分内容。如果你愿意,我可以问实施该部分的人是否记得任何重要的事情。
标签: c# wpf graph dynamic-data-display