{"id":152,"date":"2015-12-03T15:57:38","date_gmt":"2015-12-03T15:57:38","guid":{"rendered":"http:\/\/o-calcpro.com\/wiki\/?p=152"},"modified":"2015-12-03T16:03:43","modified_gmt":"2015-12-03T16:03:43","slug":"adding-a-custom-chart-to-a-report","status":"publish","type":"post","link":"http:\/\/o-calcpro.com\/wiki\/2015\/12\/03\/adding-a-custom-chart-to-a-report\/","title":{"rendered":"Adding a custom chart to a report"},"content":{"rendered":"<p>In a previous posting ( <a href=\"http:\/\/o-calcpro.com\/wiki\/2015\/12\/02\/creating-a-real-report\/\">http:\/\/o-calcpro.com\/wiki\/2015\/12\/02\/creating-a-real-report\/<\/a>\u00a0) we saw how to create a simple report. In that case it was the Applied Load report. In this article we are going to extend that report by adding a chart of the heights.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/uploads\/2015\/12\/120315_1557_Addingacust1.png\" alt=\"\" \/><\/p>\n<p>O-Calc includes a graphing API that is used to generate all of the graphs that appear on the &#8220;Charts&#8221; tab of the main interface. To keep a consistent look and feel you can take advantage of that same API when defining your reports.<\/p>\n<p>The following code would be added to the bottom of the &#8220;AddPole&#8221; (immediately after the FinalizeTable();  cDocument.LastSection.AddParagraph(&#8220;\\n&#8221;); code)  method of the report defined in the previous article (see link at the top of this article) and will result in the generation of the chart and its inclusion in the resulting report. See inline documentation for an understanding of the code.<\/p>\n<div id=\"ig-sh-1\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">using<\/span> <span style=\"color: #008000\">&#040;<\/span>ZedGraphControl zedGraph <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> ZedGraphControl<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/create the report<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphPane graphPane <span style=\"color: #008000\">=<\/span> zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">GraphPane<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">CurveList<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Clear<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/ Set the titles and axis labels and get data<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Title<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;Load Heights&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Title<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot; &quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">if<\/span> <span style=\"color: #008000\">&#040;<\/span>PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">UnitsConvention<\/span> <span style=\"color: #008000\">==<\/span> PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">UNITS_CONVENTION<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">METRIC<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Title<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;Height Meters&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">else<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Title<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;Height Feet&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">RestoreScale<\/span><span style=\"color: #008000\">&#040;<\/span>graphPane<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Type<\/span> <span style=\"color: #008000\">=<\/span> AxisType<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Linear<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Mag<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">MagAuto<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">IsUseTenPower<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Type<\/span> <span style=\"color: #008000\">=<\/span> AxisType<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Linear<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Mag<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">MagAuto<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Scale<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">IsUseTenPower<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">XAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">MinorGrid<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">IsVisible<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">YAxis<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">MinorGrid<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">IsVisible<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PointPairList points <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> PointPairList<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">foreach<\/span> <span style=\"color: #008000\">&#040;<\/span>ForceSummary fs <span style=\"color: #0600FF;font-weight: bold\">in<\/span> loads<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PointPair pp<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">if<\/span> <span style=\"color: #008000\">&#040;<\/span>PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">UnitsConvention<\/span> <span style=\"color: #008000\">==<\/span> PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">UNITS_CONVENTION<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">METRIC<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pp <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> PointPair<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #FF0000\">0<\/span>, PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">InchesToMeters<\/span><span style=\"color: #008000\">&#040;<\/span>fs<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">cHeightOfForceApplicationAboveGLinInches<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">else<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pp <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> PointPair<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #FF0000\">0<\/span>, PPLGridModel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Attribute<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">InchesToFeet<\/span><span style=\"color: #008000\">&#040;<\/span>fs<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">cHeightOfForceApplicationAboveGLinInches<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; points<span style=\"color: #008000\">.<\/span><span style=\"color: #0600FF;font-weight: bold\">Add<\/span><span style=\"color: #008000\">&#040;<\/span>pp<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/add the groundline<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; points<span style=\"color: #008000\">.<\/span><span style=\"color: #0600FF;font-weight: bold\">Add<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #FF0000\">0<\/span>, <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineItem curve <span style=\"color: #008000\">=<\/span> graphPane<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">AddCurve<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #666666\">&quot;Attachment Points&quot;<\/span>, points, Color<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Blue<\/span>, SymbolType<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Star<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curve<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Line<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Width<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">2<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/Add the chart to the report<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Width<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">640<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Height<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">500<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/ signal we are done and rendering can begin<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">AxisChange<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/get the resulting chart as a bitmap<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Image img <span style=\"color: #008000\">=<\/span> zedGraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">ImageRender<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/save the bitmap to a temp file<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">String<\/span> fname <span style=\"color: #008000\">=<\/span> <span style=\"color: #000000\">System.<span style=\"color: #0000FF\">IO<\/span><\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Path<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">GetTempFileName<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span> <span style=\"color: #008000\">+<\/span> <span style=\"color: #666666\">&quot;.jpg&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; img<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Save<\/span><span style=\"color: #008000\">&#040;<\/span>fname<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">try<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">int<\/span> imgWidth <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">int<\/span> imgHeight <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">using<\/span> <span style=\"color: #008000\">&#040;<\/span><span style=\"color: #000000\">System.<span style=\"color: #0000FF\">Drawing<\/span><\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Image<\/span> bimage <span style=\"color: #008000\">=<\/span> PPL_CorvusImageViewer<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">CorvusBitmap<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">FromFile<\/span><span style=\"color: #008000\">&#040;<\/span>fname<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imgWidth <span style=\"color: #008000\">=<\/span> bimage<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Width<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imgHeight <span style=\"color: #008000\">=<\/span> bimage<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Height<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bimage<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Dispose<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Section<\/span> section <span style=\"color: #008000\">=<\/span> cDocument<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">LastSection<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Paragraph<\/span> paragraph <span style=\"color: #008000\">=<\/span> section<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">LastParagraph<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">double<\/span> printableAreaWidth <span style=\"color: #008000\">=<\/span> ReportFont<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">cPageWidth<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">double<\/span> printableAreaHeight <span style=\"color: #008000\">=<\/span> printableAreaWidth <span style=\"color: #008000\">*<\/span> <span style=\"color: #FF0000\">3.0<\/span> <span style=\"color: #008000\">\/<\/span> <span style=\"color: #FF0000\">4.0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Shapes<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Image<\/span> image <span style=\"color: #008000\">=<\/span> paragraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">AddImage<\/span><span style=\"color: #008000\">&#040;<\/span>fname<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; paragraph<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Format<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Alignment<\/span> <span style=\"color: #008000\">=<\/span> MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">ParagraphAlignment<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Center<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">double<\/span> scaleWidth <span style=\"color: #008000\">=<\/span> printableAreaWidth <span style=\"color: #008000\">\/<\/span> <span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span><span style=\"color: #008000\">&#041;<\/span>imgWidth<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">double<\/span> scaleHeight <span style=\"color: #008000\">=<\/span> printableAreaHeight <span style=\"color: #008000\">\/<\/span> <span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span><span style=\"color: #008000\">&#041;<\/span>imgHeight<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Height<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Unit<\/span><span style=\"color: #008000\">&#040;<\/span>printableAreaHeight, MigraDoc<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DocumentObjectModel<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">UnitType<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Inch<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">catch<\/span> <span style=\"color: #008000\">&#123;<\/span> <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F152&#038;t=Adding%20a%20custom%20chart%20to%20a%20report&#038;s=100&#038;p&#091;url&#093;=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F152&#038;p&#091;images&#093;&#091;0&#093;=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-content%2Fuploads%2F2015%2F12%2F120315_1557_Addingacust1.png&#038;p&#091;title&#093;=Adding%20a%20custom%20chart%20to%20a%20report\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F152&#038;text=O-Calc%20Pro%20Information\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F152&#038;title=Adding%20a%20custom%20chart%20to%20a%20report\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Adding%20a%20custom%20chart%20to%20a%20report&#038;body=O-Calc%20Pro%20Information:%20http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F152\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>In a previous posting ( http:\/\/o-calcpro.com\/wiki\/2015\/12\/02\/creating-a-real-report\/\u00a0) we saw how to create a simple report. In that case it was the Applied Load report. In this article we are going to extend that report by adding a chart of the heights. O-Calc includes a graphing API that is used to generate all of the graphs that ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/o-calcpro.com\/wiki\/2015\/12\/03\/adding-a-custom-chart-to-a-report\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-report-development"],"_links":{"self":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":2,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":154,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/152\/revisions\/154"}],"wp:attachment":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/tags?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}