Hello,

I've been tearing my hair out trying to find the source of this problem in the code but have been defeated so am filing this here.

Basically when calling a chart programatically it appears the data series is being stored somewhere. When creating a new canvas object on the same page, the series object from the last one reappears and is added onto the graph. If you have 4 or 5 graphs on a page the display gets very crowded as each additional graph appends the new data to the last graphs data.

Using different object names for $canvas doesn't appear to help, nor does unsetting the last $canvas or $canvas->series.

This problem occurs with both Bluff Charts and Open Flash Charts, I haven't tried AmCharts.

Thanks,
Jonny

Comments

jonnyp’s picture

Priority: Critical » Minor
Status: Active » Fixed

I'm an idiot, it was my code causing the problem. Please ignore this issue - sorry!

jonnyp’s picture

Status: Fixed » Closed (fixed)