Thanks Derick, I just made a workaround using some PHP, maybe is useful for others:
... #Set the file to import, data.csv, with data, value format $data=file("data.csv", FILE_IGNORE_NEW_LINES); foreach ($data as $line) { #splits each string line using the "," separator $array_values=explode(',',$line); #pushes the array values in to an associative array $data_array[$array_values[0]]=$array_values[1]; } # Set the graph data using the data_array $graph->data['data'] = new ezcGraphArrayDataSet($data_array); ... 2009/3/24 Derick Rethans <d...@ez.no> > On Wed, 11 Mar 2009, Raul Mateos wrote: > > > I was wondering is there is way to import some data, as an .csv value, > > instead of using arrayDataSet > > > > That is, change: > > > > $graph->data['data'] = new ezcGraphArrayDataSet( array( > > 'Unix' => 346, > > 'VMS' => 8, > > 'Linux' => 374, > > 'Windows' => 34, > > ) ); > > > > to something like: > > > > $graph->data['data'] = new ezc_importGraphArrayDataSet( 'file.csv'); > > > > And this file.csv contains: > > Unix,346 > > VMS,8 > > .... and so on > > At the moment that's not there, but it would be good to have something > like this. Are you intersted in developing something here? I doubt it > would be a lot of work. > > regards, > -- > Derick Rethans > eZ components Product Manager > eZ systems | http://ez.no >
-- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components