Advertisement
cecepsuwanda

chart_ajax_2

Sep 10th, 2017
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1. <?php
  2.  
  3.    $data = array(
  4.                    'labels' => array("January", "February", "March", "April", "May", "June", "July"),
  5.                    'datasets' => array(array('label' => "Electronics",
  6.                                              'fillColor' => "rgba(210, 214, 222, 1)",
  7.                                              'strokeColor' => "rgba(210, 214, 222, 1)",
  8.                                              'pointColor' => "rgba(210, 214, 222, 1)",
  9.                                              'pointStrokeColor' => "#c1c7d1",
  10.                                              'pointHighlightFill' => "#fff",
  11.                                              'pointHighlightStroke' => "rgba(220,220,220,1)",
  12.                                              'data'=> array(65, 59, 80, 81, 56, 55, 40)
  13.                                              ),
  14.                                        array('label' => "Digital Goods",
  15.                                              'fillColor' => "rgba(60,141,188,0.9)",
  16.                                              'strokeColor' => "rgba(60,141,188,0.8)",
  17.                                              'pointColor' => "#3b8bba",
  18.                                              'pointStrokeColor' => "rgba(60,141,188,1)",
  19.                                              'pointHighlightFill' => "#fff",
  20.                                              'pointHighlightStroke' => "rgba(60,141,188,1)",
  21.                                              'data'=> array(28, 48, 40, 19, 86, 27, 90)
  22.                                              )
  23.                                       )
  24.                 );                          
  25.                              
  26.     echo json_encode($data);                           
  27.                                
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement