Yes, it is possible. Here is an example: <https://lh3.googleusercontent.com/-asV9ygXt794/VjzCoB18dYI/AAAAAAAAAAg/WLa9MD6NmBY/s1600/Image%2B1.png> This is the code:
<!DOCTYPE html> <html> <head> <title>http://exceluser.com/downloads/examples/post_900_102/index.htmlt</ title> <script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></ script> <script src="http://www.google.com/jsapi?ext.js"></script> <script> function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('number', 'X Value'); data.addColumn('number', 'Y Value'); function NormalDensityZx(x, Mean, StdDev) { var a = x - Mean; return Math.exp(-(a * a) / (2 * StdDev * StdDev)) / (Math.sqrt(2 * Math.PI) * StdDev); } var chartData = new Array([]); var index = 0; for (var i = -3; i < 3.1; i += 0.1) { chartData[index] = new Array(2); chartData[index][0] = i; chartData[index][1] = NormalDensityZx(i, 0, 1); index++; } data.addRows(chartData); options = { height: 500, width: 800, legend: 'none' }; options.hAxis = {}; options.hAxis.minorGridlines = {}; options.hAxis.minorGridlines.count = 12; var chart = new google.visualization.AreaChart(document.getElementById( 'chart_div')); chart.draw(data, options); } google.load('visualization', '1', { packages: ['corechart'], callback: drawChart }); </script> </head> <body class="chart"> <div id="chart_div"></div> </body> </html> Best regards David Wilkinson On Thursday, August 22, 2013 at 10:45:04 PM UTC+1, Nick Ochoski wrote: > Is it possible to create bell curves in Google Charts line graphs? Is > there a way to provide a value and standard deviation and plot the > distribution? > > Thank you, > Nick > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/284380c4-aca9-495f-896b-75dd7eedc4e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
