<?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>Client Side Chart &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/client-side-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:48:07 +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>Client Side Chart &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Client-Side Chart Widget in HTML 5: Part 1 (Bar Chart)</title>
		<link>https://www.sibeeshpassion.com/client-side-chart-widget-in-html-5-part-1-bar-chart/</link>
					<comments>https://www.sibeeshpassion.com/client-side-chart-widget-in-html-5-part-1-bar-chart/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 29 Jan 2015 19:49:39 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Bar Chart]]></category>
		<category><![CDATA[Chart.Js]]></category>
		<category><![CDATA[Client Side Chart]]></category>
		<category><![CDATA[Create client side chart]]></category>
		<category><![CDATA[HTML5 Chart]]></category>
		<category><![CDATA[Implement Chart]]></category>
		<category><![CDATA[Load chart]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=1041</guid>

					<description><![CDATA[Introduction Hi all, I hope you are fine. Today we will explain a client-side chart widget in HTML 5. Background As in the header, we will work with a client-side chart. For that we have a powerful widget. That is Chart.JS. Please download the necessary files here. Using the code The following is a simple HTML: [html] &#60;!DOCTYPE html&#62; &#60;html xmlns=“http://www.w3.org/1999/xhtml”&#62; &#60;head&#62; &#60;title&#62;Bar Chart Using Chart.js&#60;/title&#62; &#60;/head&#62; &#60;body&#62;&#60;/body&#62; &#60;/html&#62; [/html] Included JavaScript file. [js] &#60;script src=“Chart.js”&#62;&#60;/script&#62; [/js] Call the Chart Function as in the following: [js] window.onload = function () { var canvasObject = document.getElementById(“myChart”).getContext(“2d”); window.myBar = new Chart(canvasObject).Bar(barChartData, { [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi all, I hope you are fine. Today we will explain a client-side chart widget in HTML 5.</p>
<p><strong>Background</strong></p>
<p>As in the header, we will work with a client-side chart. For that we have a powerful widget.</p>
<p>That is Chart.JS. Please download the necessary files <a href="http://www.chartjs.org/" rel="nofollow">here</a>.</p>
<p><strong>Using the code</strong></p>
<p>The following is a simple HTML:<br />
[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html xmlns=“http://www.w3.org/1999/xhtml”&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Bar Chart Using Chart.js&lt;/title&gt;<br />
&lt;/head&gt;<br />
   &lt;body&gt;&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>Included JavaScript file.</p>
<p>[js]<br />
&lt;script src=“Chart.js”&gt;&lt;/script&gt;<br />
[/js]</p>
<p>Call the Chart Function as in the following:<br />
[js]<br />
window.onload = function () {<br />
        var canvasObject = document.getElementById(“myChart”).getContext(“2d”);<br />
        window.myBar = new Chart(canvasObject).Bar(barChartData, {<br />
            responsive: true<br />
        });<br />
    }<br />
[/js]</p>
<p>Here we are loading the chart into the myChart.</p>
<p>As you can see in the preceding code, <em>barChartData </em>is the data we will load into the chart.</p>
<p>[js]<br />
var barChartData = {<br />
        labels: [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”],<br />
        datasets: [<br />
            {<br />
                fillColor: “rgba(220,220,220,0.5)”,<br />
                strokeColor: “rgba(220,220,220,0.8)”,<br />
                highlightFill: “rgba(220,220,220,0.75)”,<br />
                highlightStroke: “rgba(220,220,220,1)”,<br />
                data: [scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor()]<br />
            },<br />
            {<br />
                fillColor: “rgba(151,187,205,0.5)”,<br />
                strokeColor: “rgba(151,187,205,0.8)”,<br />
                highlightFill: “rgba(151,187,205,0.75)”,<br />
                highlightStroke: “rgba(151,187,205,1)”,<br />
                data: [scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor()]<br />
            }<br />
        ]<br />
    }<br />
[/js]</p>
<p><strong>Properties</strong></p>
<li>Labels</li>
<li>Datasets
<li>fillColor</li>
<li>strokeColor</li>
<li>highlightFill</li>
<li>highlightStroke</li>
<li>data</li>
<p>Here you can change the properties as you want.</p>
<p>Use the following to generate data:<br />
[js]<br />
var scalingFactor = function () { return Math.round(Math.random() * 100) };<br />
[/js]</p>
<p><strong>Complete Code</strong><br />
[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html xmlns=“http://www.w3.org/1999/xhtml”&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Bar Chart Using Chart.js&lt;/title&gt;<br />
    &lt;script src=“Chart.js”&gt;&lt;/script&gt;<br />
    &lt;script&gt;<br />
    var scalingFactor = function () { return Math.round(Math.random() * 100) };<br />
    var barChartData = {<br />
        labels: [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”],<br />
        datasets: [<br />
            {<br />
                fillColor: “rgba(220,220,220,0.5)”,<br />
                strokeColor: “rgba(220,220,220,0.8)”,<br />
                highlightFill: “rgba(220,220,220,0.75)”,<br />
                highlightStroke: “rgba(220,220,220,1)”,<br />
                data: [scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor()]<br />
            },<br />
            {<br />
                fillColor: “rgba(151,187,205,0.5)”,<br />
                strokeColor: “rgba(151,187,205,0.8)”,<br />
                highlightFill: “rgba(151,187,205,0.75)”,<br />
                highlightStroke: “rgba(151,187,205,1)”,<br />
                data: [scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor(), scalingFactor()]<br />
            }<br />
        ]<br />
    }<br />
    window.onload = function () {<br />
        var canvasObject = document.getElementById(“myChart”).getContext(“2d”);<br />
        window.myBar = new Chart(canvasObject).Bar(barChartData, {<br />
            responsive: true<br />
        });<br />
    }<br />
    &lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    &lt;div&gt;<br />
        &lt;canvas id=“myChart”&gt;&lt;/canvas&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p><strong>Conclusion</strong></p>
<p>I hope you can now create your own chart.</p>
<p><strong>Output</strong></p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/client-side-chart-widget-in-html-5-part-1-bar-chart/Images/Output.jpg" alt="Output" /></p>
<p><strong>Conclusion</strong></p>
<p>I hope you liked my article. Please share me your feedback. Thank you.</p>
<p>Kindest Regards<br />
<a href="http://sibeeshpassion.com" target="_blank">Sibeesh venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/client-side-chart-widget-in-html-5-part-1-bar-chart/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
