SVN r1035
SVN-Revision: r1035
This commit is contained in:
@@ -297,6 +297,7 @@ namespace Lskj.Control
|
||||
case ChartType.LineChart:
|
||||
default:
|
||||
series = new Series(chart.YAxisTitle, chart.Chart3D == 1 ? ViewType.Line3D : ViewType.Line);
|
||||
series.Label.TextPattern = "{S}:{V}";
|
||||
break;
|
||||
case ChartType.BarChart:
|
||||
series = new Series(chart.YAxisTitle, chart.Chart3D == 1 ? ViewType.Bar3D : ViewType.Bar);
|
||||
@@ -346,8 +347,25 @@ namespace Lskj.Control
|
||||
{
|
||||
this.CreateSeriesChart(chart, series, chartData, gridView);
|
||||
series.View.Color = System.Drawing.ColorTranslator.FromHtml(chart.ChartColor);
|
||||
|
||||
this.cmMain.Series.Add(series);
|
||||
//if (chart.ChartType == ChartType.LineChart)
|
||||
//{
|
||||
// if (series.Points.Count > 0)
|
||||
// {
|
||||
// // 创建文本注解
|
||||
// TextAnnotation textAnnotation = new TextAnnotation
|
||||
// {
|
||||
// Text = chart.YAxisTitle
|
||||
// };
|
||||
// SeriesPoint seriesPoint = series.Points[0];
|
||||
// textAnnotation.AnchorPoint = new SeriesPointAnchorPoint(seriesPoint);
|
||||
// RelativePosition relativePosition = new RelativePosition();
|
||||
// relativePosition.Angle = 135;
|
||||
// relativePosition.ConnectorLength = 100;
|
||||
// textAnnotation.ShapePosition = relativePosition;
|
||||
// cmMain.AnnotationRepository.Add(textAnnotation);
|
||||
// }
|
||||
//}
|
||||
if (chart.YScale > 0)
|
||||
{
|
||||
(cmMain.Diagram as XYDiagram).AxisY.WholeRange.SetMinMaxValues(0, chart.YScale);
|
||||
|
||||
Reference in New Issue
Block a user