title: How to add a barchart to a OpenXML created document
body: <p>My C# app uses OpenXML to create a MSWord doc with several tables in it already. The last part is to add a barchart. I can't find a good example of this case.</p>
  
  <p>Thanks for your help!</p>
  
  <p>I am creating the document from scratch. Starting with:</p>
  
  <pre><code>using (WordprocessingDocument myDoc = WordprocessingDocument.Create(documentStream, WordprocessingDocumentType.Document, autoSave: true))
  </code></pre>
  
  <p>Then I add new tables and paragraphs in C# code. All that is working until I get to the barchart. I found a sample project that inserts a piechart into a word document but I don't understand the differences between the chart types to convert it. Here is the piechart sample project that I found:</p>
  
  <p><a href="https://code.msdn.microsoft.com/office/How-to-create-Chart-into-a7d424f6" rel="nofollow noreferrer">https://code.msdn.microsoft.com/office/How-to-create-Chart-into-a7d424f6</a></p>
  
  <p>Thanks for your help!</p>