Results.Output.WMChart : MarkerSize for printer = 1, MarkerStyle = Circle, ver. 2.18.1259
This commit is contained in:
@@ -111,7 +111,7 @@ namespace Results.Forms
|
||||
//chart.ChartAreas[0].AxisX.Interval = 1;
|
||||
//chart.ChartAreas[0].AxisX.IntervalType = ;
|
||||
|
||||
tabControl1.TabPages[1].Controls.Add(Results.Output.WMChart.GetChart(wm));
|
||||
tabControl1.TabPages[1].Controls.Add(Results.Output.WMChart.GetChart(wm, false));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace Results.Output.Printers.OnePerMeter
|
||||
if ((cfg.GraphHgh != 0) && (cfg.GraphWid != 0))
|
||||
{
|
||||
Rectangle pos = new Rectangle(cfg.GraphLeft, cfg.GraphTop, cfg.GraphWid, cfg.GraphHgh);
|
||||
WMChart.GetChart(wm).Printing.PrintPaint(e.Graphics, pos);
|
||||
WMChart.GetChart(wm, true).Printing.PrintPaint(e.Graphics, pos);
|
||||
}
|
||||
|
||||
float tableTop = cfg.TopMargin;
|
||||
|
||||
@@ -12,12 +12,12 @@ namespace Results.Output
|
||||
{
|
||||
public class WMChart
|
||||
{
|
||||
public static Chart GetChart(WaterMeter wm)
|
||||
public static Chart GetChart(WaterMeter wm, bool isPrinter)
|
||||
{
|
||||
return GetChart(wm, Config.Unit.lph, false);
|
||||
return GetChart(wm, isPrinter, Config.Unit.lph, false);
|
||||
}
|
||||
|
||||
public static Chart GetChart(WaterMeter wm, Config.Unit flowUnit, bool isQ4)
|
||||
public static Chart GetChart(WaterMeter wm, bool isPrinter, Config.Unit flowUnit, bool isQ4)
|
||||
{
|
||||
IList<PointF> unsortedPoints = new List<PointF>();
|
||||
foreach (var mtr in wm.MeterTestRslts)
|
||||
@@ -97,7 +97,9 @@ namespace Results.Output
|
||||
|
||||
Series line = new Series { Name = Strings.Relative_error, ChartArea = "ChartArea1", ChartType = SeriesChartType.Line, Color = Color.DeepSkyBlue };
|
||||
Series dots = new Series { Name = Strings.Relative_error + " ", ChartArea = "ChartArea1", ChartType = SeriesChartType.Point, Color = Color.RoyalBlue };
|
||||
foreach (var point in sortedPoints)
|
||||
dots.MarkerStyle = MarkerStyle.Circle;
|
||||
if (isPrinter) dots.MarkerSize = 1;
|
||||
foreach (var point in sortedPoints)
|
||||
{
|
||||
line.Points.AddXY(point.X, point.Y);
|
||||
dots.Points.AddXY(point.X, point.Y);
|
||||
|
||||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.18.1258.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.1258.0")]
|
||||
[assembly: AssemblyVersion("2.18.1259.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.1259.0")]
|
||||
|
||||
Reference in New Issue
Block a user