{"id":24850,"date":"2017-10-15T12:59:59","date_gmt":"2017-10-15T07:29:59","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24850"},"modified":"2017-10-15T12:59:59","modified_gmt":"2017-10-15T07:29:59","slug":"c-program-draw-3d-bar-chart","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/c-program-draw-3d-bar-chart\/","title":{"rendered":"C program to draw a 3d bar chart"},"content":{"rendered":"<p>This c program draws a 3d bar chart.<\/p>\n<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\/>int 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 to draw a 3d bar chart &#8211; c programming &#8211; This c program draws a 3d bar chart and the source code is provided for the use<\/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,83336,83188,83340,83338,83341,83339,83337,83201,83189,83186,83072,83187],"class_list":["post-24850","post","type-post","status-publish","format-standard","hentry","category-c-programming-2","category-coding","tag-3d-bar-chart-program","tag-bar-chart-program-in-computer-graphics","tag-bar-function-in-c","tag-bar-graph-in-c-using-graphics","tag-bar3d-function-in-c-graphics","tag-bar3d-in-c-graphics","tag-c-program-for-creating-3d-scenes","tag-c-program-to-draw-3d-cube","tag-c-program-to-draw-a-bar-chart","tag-how-to-plot-graph-in-c-programming","tag-pie-chart-in-c-graphics","tag-setfillstyle-function-in-c","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\/24850","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=24850"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24850\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}