Hi,

Is it possible to change settings, like those indicated here : http://www.amcharts.com/docs/v.1/bundle/settings/column_bar
I try to define color to this chart, but the color change every page refresh.
I'm sure that I'm missing somthing.
Thanks


  $canvas = charts_graphs_get_graph('amcharts');
   
  $canvas->title = "AmCharts Chart";
  $canvas->type = "line";
  $canvas->y_legend = "Y Legend";
  $canvas->colour = '#808000';
  $canvas->theme = 'keynote'; 
  $canvas->series = array(
    'Some Value' => array(9,6,7,9,5,7,6,9,7),
    'Page Views' => array(6,7,9,5,7,6,9,7,3),
  );
  $canvas->x_labels = array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine');
 
  $out = $canvas->get_chart();

  return $out;

Comments

bneel’s picture

Nobody ?

bneel’s picture

Sniff,
There is nobuddies....

bneel’s picture

Allo ?

rsevero’s picture

Assigned: Unassigned » rsevero
Status: Active » Fixed

Please take a look at the "Arbitrary parameters" in the amCharts help page available at http://examppple.com/help/charts_graphs/amcharts. Remember that to have access to this page you need the Advanced Help module enabled.

Please reopen with extra info if necessary.

Status: Fixed » Closed (fixed)

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

capoyeti’s picture

Hi rsevero,

thanks for the awesome module - could you please expand a little on #4 above?
1) What should the xml file be named, and where should it be stored?
2) How do you differentiate files for different chart types (I'm using chart, column, line and pie)
3) Can you perhaps provide a more detailed example?

Thanks,
Chad

capoyeti’s picture

Status: Closed (fixed) » Active

Hi Rsevero (or anyone else)

Please provide a pointer on what to edit with the parameters as pointed out by you above (which file - or is a custom module required and if so, where do you call it). I've posted my experience/attempts here (http://drupal.org/node/1103016#comment-45937940 ) - but still do not know what to edit (where to place the settings) to use in views.

Sorry to open this issue again - but I (and others) have been posting on this for a couple of weeks with no joy.

Thanks

ludo.r’s picture

Version: 6.x-2.3 » 6.x-2.7

Does anyone know how to add settings on loading?

I'd like to add "export as image" feature.