我想用NPOI绘制这样一个pic的图表
但是我找不到纯NPOI的任何例子
然后我尝试了...
...
IChartAxis bottomAxis = chart.ChartAxisFactory.CreateCategoryAxis(AxisPosition.Bottom);
IValueAxis leftAxis = chart.ChartAxisFactory.CreateValueAxis(AxisPosition.Left);
leftAxis.Crosses = AxisCrosses.AutoZero;
IValueAxis rightAxis = chart.ChartAxisFactory.CreateValueAxis(AxisPosition.Right);
rightAxis.Crosses = AxisCrosses.Max;
chart.Plot(leftData, bottomAxis, leftAxis);
chart.Plot(rightData, bottomAxis, rightAxis);
但是我只得到一个损坏的文件,恢复后Excel删除了图表
是否可以使用NOPI绘制此图?