Active
Project:
Charts and Graphs
Version:
6.x-2.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Sep 2010 at 13:09 UTC
Updated:
28 Mar 2012 at 09:54 UTC
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
Comment #1
bneel commentedNobody ?
Comment #2
bneel commentedSniff,
There is nobuddies....
Comment #3
bneel commentedAllo ?
Comment #4
rsevero commentedPlease 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.
Comment #6
capoyeti commentedHi 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
Comment #7
capoyeti commentedHi 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
Comment #8
ludo.rDoes anyone know how to add settings on loading?
I'd like to add "export as image" feature.