我有一个图,看起来像这样:
我希望它看起来像这样:
我一直在使用Dynamic Data Display的Isoline库。
问题是,即使该区域中的所有值均为0(因此等值线停止的原因),该区域在右上角也是彩色的。
有人知道我是否可以调整我的.xaml文件,使该区域仅显示白色背景色?
先感谢您,
CX
我当前的.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>
最佳答案
我在等值线方面工作不多,但是根据我确实知道的信息,看来您必须更改用于图形的调色板类。在D3讨论板上有一个概述了解决方案的讨论。
Discussion
您可以在此处接受建议并根据数据创建比率,或者可以直接使用源代码并在调色板类中将所有0值都用白色上色。
关于c# - 动态数据显示等值线白色边缘,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9174094/