{"id":24846,"date":"2017-10-15T11:56:38","date_gmt":"2017-10-15T06:26:38","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24846"},"modified":"2017-10-15T12:06:26","modified_gmt":"2017-10-15T06:36:26","slug":"c-program-draw-bar-chart","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/c-program-draw-bar-chart\/","title":{"rendered":"C program draw bar chart"},"content":{"rendered":"<h2 id=\"c-programming-code\">C programming code<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">#include &lt;graphics.h&gt;<br\/>#include &lt;conio.h&gt;<br\/> <br\/>main()<br\/>{<br\/>   int gd = DETECT, gm;<br\/> <br\/>   initgraph(&amp;gd, &amp;gm, &quot;C:\\\\TC\\\\BGI&quot;);<br\/> <br\/>   setcolor(YELLOW);<br\/>   rectangle(0,30,639,450);<br\/>   settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);<br\/>   setcolor(WHITE);<br\/>   outtextxy(275,0,&quot;Bar Chart&quot;);<br\/> <br\/>   setlinestyle(SOLID_LINE,0,2);<br\/> <br\/>   line(100,420,100,60);<br\/>   line(100,420,600,420);<br\/>   line(90,70,100,60);<br\/>   line(110,70,100,60);<br\/>   line(590,410,600,420);<br\/>   line(590,430,600,420);<br\/> <br\/>   outtextxy(95,35,&quot;Y&quot;);<br\/>   outtextxy(610,405,&quot;X&quot;);<br\/>   outtextxy(85,415,&quot;O&quot;);<br\/> <br\/>   setfillstyle(LINE_FILL,BLUE);<br\/>   bar(150,100,200,419);<br\/> <br\/>   setfillstyle(XHATCH_FILL,RED);<br\/>   bar(225,150,275,419);<br\/> <br\/>   setfillstyle(WIDE_DOT_FILL,GREEN);<br\/>   bar(300,200,350,419);<br\/> <br\/>   setfillstyle(INTERLEAVE_FILL,MAGENTA);<br\/>   bar(375,125,425,419);<br\/> <br\/>   setfillstyle(HATCH_FILL,BROWN);<br\/>   bar(450,175,500,419);<br\/> <br\/>   getch();<br\/>   return 0;<br\/>}<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n","protected":false},"excerpt":{"rendered":"<p>C program draw bar chart &#8211; c programming &#8211; This program draws bar chart using c graphics. Chart is drawn using bars filled with different styles <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82927,1],"tags":[83190,83188,83195,70824,83196,76428,83194,83189,83186,83193,83198,83197,83192,83191,83187],"class_list":["post-24846","post","type-post","status-publish","format-standard","hentry","category-c-programming-2","category-coding","tag-3d-bar-chart-program","tag-bar-function-in-c","tag-c-program-examples-with-answers","tag-c-programming-examples-with-output","tag-c-programming-full-notes","tag-c-programs-for-interview","tag-c-programs-with-output-pdf","tag-how-to-plot-graph-in-c-programming","tag-pie-chart-in-c-graphics","tag-plot-function-in-c","tag-structure-program-in-c","tag-turbo-c-program","tag-wap-in-c-for-pie-chart","tag-wap-in-c-to-make-2d-and-3d-bar-chart","tag-write-a-program-to-draw-graphic-of-a-bar-chart-in-java"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=24846"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24846\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}