daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [["Year","accept","error","total"],[{"v":0,"f":"20.09.2018"},1,3,4],
  2. [{"v":1,"f":"21.09.2018"},4,5,9],[{"v":2,"f":"22.09.2018"},0,7,7],
  3. [{"v":3,"f":"24.09.2018"},14,14,28],[{"v":4,"f":"25.09.2018"},2,2,4],
  4. [{"v":5,"f":"26.09.2018"},6,16,22]]
  5.    
  6. function drawChart(chart_id, chart_title, chart_data) {
  7.  
  8.         var data = google.visualization.arrayToDataTable(
  9.             chart_data
  10.         );
  11.  
  12.  
  13.         var options = {
  14.             title: chart_title,
  15.  
  16.             hAxis: {
  17.                 title: 'Datum',
  18.                 titleTextStyle: {color: '#333'}},
  19.             vAxis: {minValue: 0},
  20.             trendlines: {
  21.                 0: {
  22.                     type: 'polynomial',
  23.                     degree: 3,
  24.                 },
  25.                 1:{
  26.                     type: 'polynomial',
  27.                     degree: 3,
  28.                 },
  29.                 2:{
  30.                     type: 'polynomial',
  31.                     degree: 3,
  32.                 } }    // Draw a trendline for data series 0.
  33.         };
  34.  
  35.         var chart = new google.visualization.AreaChart(document.getElementById(chart_id));
  36.         chart.draw(data, options);
  37.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top