OWC画多条折线 纵坐标数据有问题
ChartSpace laySpace = new ChartSpaceClass();
ChChart InsertChart = laySpace.Charts.Add(0);
InsertChart.Type = ChartChartTypeEnum.chChartTypeLineStackedMarkers;ChartChartTypeEnum.chChartTypeScatterSmoothLineMarkers;
InsertChart.HasLegend = false;
InsertChart.HasTitle = true;
InsertChart.Title.Caption = GraphCaption;
InsertChart.Axes[0].HasTitle = true;
InsertChart.Axes[0].Title.Caption = yTitle;
InsertChart.Axes[0].HasMajorGridlines = true;
InsertChart.Axes[0].HasMinorGridlines = true;
InsertChart.PlotArea.Interior.Color = "white ";
InsertChart.SeriesCollection.Add(0);
InsertChart.SeriesCollection[0].Line.DashStyle = ChartLineDashStyleEnum.chLineSquareDot;
InsertChart.SeriesCollection[0].Marker.Size = 5;
InsertChart.SeriesCollection[0].SetData(ChartDimensionsEnum.chDimSeriesNames, +(int)ChartSpecialDataSourcesEnum.chDataLiteral, strSeriesName);
InsertChart.SeriesCollection[0].SetData(ChartDimensionsEnum.chDimCategories, +(int)ChartSpecialDataSourcesEnum.chDataLiteral, strXdata);
InsertChart.SeriesCollection[0].SetData(ChartDimensionsEnum.chDimValues, (int)ChartSpecialDataSourcesEnum.chDataLiteral, 值1序列);
InsertChart.SeriesCollection.Add(1);
InsertChart.SeriesCollection[1].Line.DashStyle = ChartLineDashStyleEnum.chLineSquareDot;
InsertChart.SeriesCollection[1].Marker.Size = 5;
InsertChart.SeriesCollection[1].SetData(ChartDimensionsEnum.chDimSeriesNames, +(int)ChartSpecialDataSourcesEnum.chDataLiteral, strSeriesName);
InsertChart.SeriesCollection[1].SetData(ChartDimensionsEnum.chDimCategories, +(int)ChartSpecialDataSourcesEnum.chDataLiteral, strXdata);
InsertChart.SeriesCollection[1].SetData(ChartDimensionsEnum.chDimValues, (int)ChartSpecialDataSourcesEnum.chDataLiteral, 值2序列);
两条折线是都生成出来了.
可总是其中一条折线点的纵坐标和真实数据对应不上.
试了好长时间都没解决.求救
------解决方案--------------------顶!!!!!接分。