- this.c1Chart1.View.AxisX.AnnoAngle = 60;
复制代码
设置坐标文本旋转角度。
标题后左边文本设置如下:
- <c1:C1Chart HorizontalAlignment="Stretch" Margin="10,10,10,10" Name="c1Chart1" VerticalAlignment="Stretch">
- <c1:C1Chart.Data>
- <c1:ChartData ItemNames="企业1 企业2 企业3 企业4 企业5">
- <c1:DataSeries Label="Series 1" RenderMode="Default" Values="20 22 19 24 25" />
- </c1:ChartData>
-
- </c1:C1Chart.Data>
- <c1:C1ChartLegend DockPanel.Dock="Right" />
- <TextBlock DockPanel.Dock="Top" Text="2013年度报表" HorizontalAlignment="Center"/>
- <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" VerticalAlignment="Center" Text="单位:万元" Margin="0,100,-40,0">
- <TextBlock.RenderTransform>
- <RotateTransform Angle="-90"/>
- </TextBlock.RenderTransform>
- </TextBlock>
- </c1:C1Chart>
复制代码
效果图如下:
|