<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Combo Chart &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/combo-chart/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Fri, 17 Jul 2015 12:38:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Combo Chart &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Create a Combo Chart and Make Your Chart Draggable</title>
		<link>https://www.sibeeshpassion.com/create-a-combo-chart-and-make-your-chart-draggable/</link>
					<comments>https://www.sibeeshpassion.com/create-a-combo-chart-and-make-your-chart-draggable/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 29 Apr 2015 20:34:03 +0000</pubDate>
				<category><![CDATA[HighChart]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[Combo Chart]]></category>
		<category><![CDATA[Draggable Chart]]></category>
		<category><![CDATA[HTML5 Chart]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=1821</guid>

					<description><![CDATA[Introduction Hi all, this article explains how to create a Combo chart. As you all know, the word combo is short for combination, in this case it is a combination of chart types. Which means we can have multiple chart types in one chart. Background For the past few months I have been working in a dashboard application, so I encountered a situation to work with a Combo chart in my application. As I began working with the Combo chart, when I finished the work I got a new requirement that a Pie chart must be draggable in the chart [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong><br />
Hi all, this article explains how to create a Combo chart. As you all know, the word combo is short for combination, in this case it is a combination of chart types. Which means we can have multiple chart types in one chart.</p>
<p><strong>Background</strong></p>
<p>For the past few months I have been working in a dashboard application, so I encountered a situation to work with a Combo chart in my application. As I began working with the Combo chart, when I finished the work I got a new requirement that a Pie chart must be draggable in the chart area. So I thought of working on that and share it with you all.</p>
<p><strong>What we need first</strong></p>
<p>Include the necessary JavaScript files and UI elements as follows.</p>
<div>
<div class="dp-highlighter">
<div class="bar"></div>
<ol class="dp-c">
<li class="alt">&lt;script src=<span class="string">&#8220;http://code.highcharts.com/highcharts.js&#8221;</span>&gt;&lt;/script&gt;</li>
<li>&lt;script src=<span class="string">&#8220;http://code.highcharts.com/modules/exporting.js&#8221;</span>&gt;&lt;/script&gt;</li>
<li class="alt">&lt;div id=<span class="string">&#8220;container&#8221;</span> style=<span class="string">&#8220;min-width: 310px; height: 400px; margin: 0 auto&#8221;</span>&gt;&lt;/div&gt;</li>
<li>&lt;div id=<span class="string">&#8220;container2&#8221;</span> style=<span class="string">&#8220;width: 150px; height: 150px; margin: 0 auto; position:absolute; top: 120px; left: 150px;&#8221;</span>&gt;&lt;/div&gt;</li>
</ol>
</div>
</div>
<p><strong>Combo chart configuration</strong></p>
<p>Our next step is to configure the Combo chart. You can determine the configuration here.</p>
<div>
<div class="dp-highlighter">
<div class="bar"></div>
<ol class="dp-c">
<li class="alt">$(function()</li>
<li>{</li>
<li class="alt">    $(<span class="string">&#8216;#container&#8217;</span>).highcharts({</li>
<li>        title: {</li>
<li class="alt">            text: <span class="string">&#8216;Worked hours in a week&#8217;</span></li>
<li>        },</li>
<li class="alt">        xAxis: {</li>
<li>            categories: [<span class="string">&#8216;Apples&#8217;</span>, <span class="string">&#8216;Oranges&#8217;</span>, <span class="string">&#8216;Pears&#8217;</span>, <span class="string">&#8216;Bananas&#8217;</span>, <span class="string">&#8216;Plums&#8217;</span>]</li>
<li class="alt">        },</li>
<li>        series: [{</li>
<li class="alt">            type: <span class="string">&#8216;column&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Monday&#8217;</span>,</li>
<li class="alt">            data: [3, 2, 1, 3, 4]</li>
<li>        }, {</li>
<li class="alt">            type: <span class="string">&#8216;column&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Tuesday&#8217;</span>,</li>
<li class="alt">            data: [2, 3, 5, 7, 6]</li>
<li>        }, {</li>
<li class="alt">            type: <span class="string">&#8216;column&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Wednesday&#8217;</span>,</li>
<li class="alt">            data: [4, 3, 3, 9, 0]</li>
<li>        }, {</li>
<li class="alt">            type: <span class="string">&#8216;column&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Thursday&#8217;</span>,</li>
<li class="alt">            data: [4, 3, 3, 9, 0]</li>
<li>        }, {</li>
<li class="alt">            type: <span class="string">&#8216;column&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Friday&#8217;</span>,</li>
<li class="alt">            data: [4, 3, 3, 9, 0]</li>
<li>        }, {</li>
<li class="alt">            type: <span class="string">&#8216;spline&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Thursday&#8217;</span>,</li>
<li class="alt">            data: [3, 2.67, 3, 6.33, 3.33],</li>
<li>            marker: {</li>
<li class="alt">                lineWidth: 2,</li>
<li>                lineColor: Highcharts.getOptions().colors[3],</li>
<li class="alt">                fillColor: <span class="string">&#8216;white&#8217;</span></li>
<li>            }</li>
<li class="alt">        }]</li>
<li>    });</li>
<li class="alt">    $(<span class="string">&#8216;#container2&#8217;</span>).highcharts({</li>
<li>        chart: {</li>
<li class="alt">            backgroundColor: <span class="string">&#8216;rgba(0,0,0,0)&#8217;</span></li>
<li>        },</li>
<li class="alt">        title: {</li>
<li>            text: <span class="keyword">null</span></li>
<li class="alt">        },</li>
<li>        exporting: {</li>
<li class="alt">            enabled: <span class="keyword">false</span></li>
<li>        },</li>
<li class="alt">        credits: {</li>
<li>            enabled: <span class="keyword">false</span></li>
<li class="alt">        },</li>
<li>        series: [{</li>
<li class="alt">            type: <span class="string">&#8216;pie&#8217;</span>,</li>
<li>            name: <span class="string">&#8216;Total&#8217;</span>,</li>
<li class="alt">            data: [{</li>
<li>                name: <span class="string">&#8216;Monday&#8217;</span>,</li>
<li class="alt">                y: 13,</li>
<li>                color: Highcharts.getOptions().colors[0]</li>
<li class="alt">            }, {</li>
<li>                name: <span class="string">&#8216;Tuesday&#8217;</span>,</li>
<li class="alt">                y: 23,</li>
<li>                color: Highcharts.getOptions().colors[1]</li>
<li class="alt">            }, {</li>
<li>                name: <span class="string">&#8216;Wednesday&#8217;</span>,</li>
<li class="alt">                y: 19,</li>
<li>                color: Highcharts.getOptions().colors[2]</li>
<li class="alt">            }, {</li>
<li>                name: <span class="string">&#8216;Thursday&#8217;</span>,</li>
<li class="alt">                y: 19,</li>
<li>                color: Highcharts.getOptions().colors[2]</li>
<li class="alt">            }, {</li>
<li>                name: <span class="string">&#8216;Friday&#8217;</span>,</li>
<li class="alt">                y: 19,</li>
<li>                color: Highcharts.getOptions().colors[2]</li>
<li class="alt">            }],</li>
<li>            size: 90,</li>
<li class="alt">            showInLegend: <span class="keyword">false</span>,</li>
<li>            dataLabels: {</li>
<li class="alt">                enabled: <span class="keyword">false</span></li>
<li>            }</li>
<li class="alt">        }]</li>
<li>    });</li>
<li class="alt">    $(<span class="string">&#8220;#container2&#8221;</span>).draggable();</li>
<li>});</li>
</ol>
</div>
</div>
<p>Please note that I have given the Pie chart as a separate chart so that we can make it draggable as follows.</p>
<div class="dp-highlighter">
<div class="bar"></div>
<ol class="dp-c">
<li class="alt">$(<span class="string">&#8220;#container2&#8221;</span>).draggable();</li>
</ol>
</div>
<p>You can determine the demo here: <a href="http://jsfiddle.net/sibeeshvenu/oc1mn8ru/4/">http://jsfiddle.net/sibeeshvenu/oc1mn8ru/4/</a></p>
<p><strong>Output</strong></p>
<p>Now if you run this configuration you will get output as follows.</p>
<p><img fetchpriority="high" decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/combo-chart-and-make-chart-as-draggable/Images/comboart1.png" alt="" width="600" height="333" /></p>
<p>Now the interesting fact is, you can drag the pie to where ever you want it.</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/combo-chart-and-make-chart-as-draggable/Images/comboart2.png" alt="" width="600" height="325" /></p>
<p><strong>Conclusion</strong></p>
<p>I hope you liked this article. Now please share your thoughts and suggestions. It matters a lot.</p>
<p>Kindest Regards,</p>
<p>Sibeesh Venu<br />
<a href="http://www.c-sharpcorner.com/UploadFile/65794e/combo-chart-and-make-chart-as-draggable/www.sibeeshpassion.com">Sibeesh Passion</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/create-a-combo-chart-and-make-your-chart-draggable/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
