Assembla home | Assembla project page
 

Ticket #5 (closed enhancement: fixed)

Opened 1 year ago

Last modified 6 months ago

Implementing links usage

Reported by: houseoftech Assigned to: joaquin.win
Priority: normal Milestone: v1.0
Severity: normal Keywords: links
Cc: wreTRjyUuODH

Description

Great helper, it has helped a lot. I didn't see a function for addLinks so I threw it into the setData function.

At line 94 I added:

if(isset($info['links'])) {
	$links = $info['links'];
	$this->graph->set_links($links);
}

Then in the view you can just include an array of links just as you include the data:

$chartData = array(
    'Downloads' => array(
        'color' => '#00aa42',
        'font_size' => 11,
        'data' => $chartData,
	'links' => $chartLinks,
        'graph_style' => 'bar',
    )
);

-Corie

Attachments

Change History

05/31/08 12:55:12 changed by joaquin.win

  • owner set to joaquin.win.
  • status changed from new to assigned.

06/02/08 16:01:36 changed by joaquin.win

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [7]) Implementing link usage. Closes #5. Thanks to houseoftech. Caveat: problems arise when using links with commas in it (e.g. javascript:alert("this is the number: 10,400.00") ). This is a bug in the OpenFlashChart? PHP class.

12/25/08 00:39:40 changed by fbgrtbfy

  • cc set to wreTRjyUuODH.

Add/Change #5 (Implementing links usage)




Change Properties
Action