Flash in a component - Joomla! Forum - community, help and support
hi
i'n trying use http://www.maani.us/charts/index.php in component echo of data try use building graph.
anyone got idea on how include flash in output of component?
the code im useing is:
$chart[ 'axis_category' ] = array ( 'size'=>16, 'color'=>"000000", 'alpha'=>75, 'skip'=>0 ,'orientation'=>"horizontal" );
$chart[ 'axis_ticks' ] = array ( 'value_ticks'=>false, 'category_ticks'=>true, 'major_thickness'=>2, 'minor_thickness'=>1, 'minor_count'=>1, 'major_color'=>"000000", 'minor_color'=>"222222" ,'position'=>"inside" );
$chart[ 'axis_value' ] = array ( 'min'=>-40, 'size'=>10, 'color'=>"ffffff", 'alpha'=>50, 'steps'=>6, 'prefix'=>"", 'suffix'=>"", 'decimals'=>0, 'separator'=>"", 'show_min'=>false );
$chart[ 'chart_data' ] = array ( array ( "", "2004", "2005", "2006", "2007" ), array ( "region 1", 48, 55, 80, 100 ), array ( "region 2", -12, 10, 55, 65 ), array ( "region 3", 27, -20, 15, 80) );
$chart[ 'chart_grid_h' ] = array ( 'alpha'=>10, 'color'=>"000000", 'thickness'=>1 );
$chart[ 'chart_pref' ] = array ( 'line_thickness'=>2, 'point_shape'=>"circle", 'fill_shape'=>false );
$chart[ 'chart_rect' ] = array ( 'x'=>50, 'y'=>100, 'width'=>320, 'height'=>150, 'positive_color'=>"ffffff", 'positive_alpha'=>50, 'negative_color'=>"000000", 'negative_alpha'=>10 );
$chart[ 'chart_transition' ] = array ( 'type'=>"slide_left", 'delay'=>.5, 'duration'=>.5, 'order'=>"series" );
$chart[ 'chart_type' ] = "line";
$chart[ 'chart_value' ] = array ( 'position'=>"cursor", 'size'=>12, 'color'=>"000000", 'background_color'=>"aaff00", 'alpha'=>80 );
$chart[ 'draw' ] = array ( array ( 'transition'=>"dissolve", 'delay'=>0, 'duration'=>.5, 'type'=>"text", 'color'=>"000000", 'alpha'=>8, 'font'=>"arial", 'rotation'=>0, 'bold'=>true, 'size'=>48, 'x'=>8, 'y'=>7, 'width'=>400, 'height'=>75, 'text'=>"annual report", 'h_align'=>"center", 'v_align'=>"bottom" ) );
$chart[ 'legend_label' ] = array ( 'layout'=>"horizontal", 'bullet'=>"line", 'font'=>"arial", 'bold'=>true, 'size'=>13, 'color'=>"ffffff", 'alpha'=>65 );
$chart[ 'legend_rect' ] = array ( 'x'=>50, 'y'=>75, 'width'=>320, 'height'=>5, 'margin'=>5, 'fill_color'=>"000000", 'fill_alpha'=>7, 'line_color'=>"000000", 'line_alpha'=>0, 'line_thickness'=>0 );
$chart[ 'legend_transition' ] = array ( 'type'=>"dissolve", 'delay'=>0, 'duration'=>.5 );
$chart[ 'series_color' ] = array ( "ff4444", "ffff00", "8844ff" );
$chart [ 'series_explode' ] = array ( 400 );
//send new data charts.swf
sendchartdata ( $chart );
all in other end is:
2004
2005
2006
2007
|
region 1
48
55
80
100
|
region 2
-12
10
55
65
|
region 3
27
-20
15
80
|
line
annual report
ff4444
ffff00
8844ff
400
and no flash graph.
arcangle
i'n trying use http://www.maani.us/charts/index.php in component echo of data try use building graph.
anyone got idea on how include flash in output of component?
the code im useing is:
$chart[ 'axis_category' ] = array ( 'size'=>16, 'color'=>"000000", 'alpha'=>75, 'skip'=>0 ,'orientation'=>"horizontal" );
$chart[ 'axis_ticks' ] = array ( 'value_ticks'=>false, 'category_ticks'=>true, 'major_thickness'=>2, 'minor_thickness'=>1, 'minor_count'=>1, 'major_color'=>"000000", 'minor_color'=>"222222" ,'position'=>"inside" );
$chart[ 'axis_value' ] = array ( 'min'=>-40, 'size'=>10, 'color'=>"ffffff", 'alpha'=>50, 'steps'=>6, 'prefix'=>"", 'suffix'=>"", 'decimals'=>0, 'separator'=>"", 'show_min'=>false );
$chart[ 'chart_data' ] = array ( array ( "", "2004", "2005", "2006", "2007" ), array ( "region 1", 48, 55, 80, 100 ), array ( "region 2", -12, 10, 55, 65 ), array ( "region 3", 27, -20, 15, 80) );
$chart[ 'chart_grid_h' ] = array ( 'alpha'=>10, 'color'=>"000000", 'thickness'=>1 );
$chart[ 'chart_pref' ] = array ( 'line_thickness'=>2, 'point_shape'=>"circle", 'fill_shape'=>false );
$chart[ 'chart_rect' ] = array ( 'x'=>50, 'y'=>100, 'width'=>320, 'height'=>150, 'positive_color'=>"ffffff", 'positive_alpha'=>50, 'negative_color'=>"000000", 'negative_alpha'=>10 );
$chart[ 'chart_transition' ] = array ( 'type'=>"slide_left", 'delay'=>.5, 'duration'=>.5, 'order'=>"series" );
$chart[ 'chart_type' ] = "line";
$chart[ 'chart_value' ] = array ( 'position'=>"cursor", 'size'=>12, 'color'=>"000000", 'background_color'=>"aaff00", 'alpha'=>80 );
$chart[ 'draw' ] = array ( array ( 'transition'=>"dissolve", 'delay'=>0, 'duration'=>.5, 'type'=>"text", 'color'=>"000000", 'alpha'=>8, 'font'=>"arial", 'rotation'=>0, 'bold'=>true, 'size'=>48, 'x'=>8, 'y'=>7, 'width'=>400, 'height'=>75, 'text'=>"annual report", 'h_align'=>"center", 'v_align'=>"bottom" ) );
$chart[ 'legend_label' ] = array ( 'layout'=>"horizontal", 'bullet'=>"line", 'font'=>"arial", 'bold'=>true, 'size'=>13, 'color'=>"ffffff", 'alpha'=>65 );
$chart[ 'legend_rect' ] = array ( 'x'=>50, 'y'=>75, 'width'=>320, 'height'=>5, 'margin'=>5, 'fill_color'=>"000000", 'fill_alpha'=>7, 'line_color'=>"000000", 'line_alpha'=>0, 'line_thickness'=>0 );
$chart[ 'legend_transition' ] = array ( 'type'=>"dissolve", 'delay'=>0, 'duration'=>.5 );
$chart[ 'series_color' ] = array ( "ff4444", "ffff00", "8844ff" );
$chart [ 'series_explode' ] = array ( 400 );
//send new data charts.swf
sendchartdata ( $chart );
all in other end is:
and no flash graph.
arcangle
Comments
Post a Comment