Skip to content

Commit

Permalink
Cleanup example a little. #1424
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Dec 9, 2013
1 parent 1182cbc commit 851d47e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions includes/admin/reporting/class-edd-graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,27 @@
class EDD_Graph {

/*
Simple example:
Should look something like this:
data format for each point: array( location on x, location on y )
$data = array(
// X axis
array(
'Label' => array(
array( 1, 5 ),
array( 3, 8 ),
array( 10, 2 )
),
// Y axis
array(
'Second Label' => array(
array( 1, 7 ),
array( 4, 5 ),
array( 12, 8 )
)
);
$graph = new EDD_Graph( $data );
// Include optional methods for setting colors, sizes, etc
$graph->display();
*/
Expand Down

0 comments on commit 851d47e

Please sign in to comment.