如何在Visifire Chart CandleStick中进行自动缩放?
当我尝试时:
xmlns:vc="clr-namespace:Visifire.Charts;assembly=WPFVisifire.Charts"
<vc:Chart Width="500" Height="300" Theme="Theme2" Name="chartMain">
<vc:Chart.Series>
<vc:DataSeries RenderAs="CandleStick">
<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="1" YValues="100.5,101.2,101.3,100.5"/>
<vc:DataPoint AxisXLabel="2" YValues="100.8,100,101.1,101.4"/>
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
它不是aotuscale。
答案 0 :(得分:0)
我做了以下更改,图表正确显示。你的YValues错了。它们应该根据Open,Close,High,Low。 http://www.visifire.com/documentation/Visifire_Documentation/Charts/Reference/Attribute_Reference/YValues.htm
<Grid>
<vc:Chart Theme="Theme2" Name="chartMain">
<vc:Chart.AxesX>
<vc:Axis AxisMaximum="20" />
</vc:Chart.AxesX>
<vc:Chart.AxesY>
<vc:Axis AxisMinimum="95" />
</vc:Chart.AxesY>
<vc:Chart.Series>
<vc:DataSeries RenderAs="CandleStick">
<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="1" YValues="100.5,101.2,101.3,100.5"/>
<vc:DataPoint AxisXLabel="2" YValues="100.8,100,101.4,99"/>
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
</Grid>