There's a bug in the API which prevents multiple series from working. I don't know how to officially patch things, but this seems to be working for me:

in open_flash_chart_api.module, replace line 106 with these two:

original:
$tmp .= $this->format_output($output_type,'values_'. $num, $data);

fixed:
$valueNum = $num+1; // fix naming convention to allow multiple series
$tmp .= $this->format_output($output_type,'values_'. $valueNum, $data);

CommentFileSizeAuthor
#3 multi_data_line.patch756 bytesredndahead
#3 multi_data_line.patch756 bytesredndahead

Comments

sprugman’s picture

Oops. I meant line 906.

redndahead’s picture

Can you explain what multiple series means? Are you saying two sets of data on the same graph or two graphs? Can you give me some example code? I expect that multiple graphs may have issues and I have filed a bug to consider how to deal with it. But on line 909 the $num++; should take care of doing the incrementing.

I'll try some testing to see what I can and can not get to work.

redndahead’s picture

Assigned: Unassigned » redndahead
Status: Active » Needs review
StatusFileSize
new756 bytes
new756 bytes

I found the bug and attached is the patch file. Only 2 lines of code need to be changed. It was a misread of the OFC spec.

redndahead’s picture

Status: Needs review » Fixed

Committed code.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.