1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
class TestItController < ApplicationController def index @graph = open_flash_chart_object(600,300, '/test_it/call_me2') end def call_me2 render :text => "&x_grid_colour=#2D2D2D& &tool_tip=%23val%23& &x_label_style=10,#000000,2& &y_min=0& &x_axis_steps=1& &x_axis_colour=#2D2D2D& &y_axis_colour=#2D2D2D& &y_grid_colour=#2D2D2D& &bg_colour=#FFFFFF& &y_ticks=5,10,10& &line_hollow_2=2,#DF1010,Desubscripciones,11,5& &line_hollow=2,#1C7703,Suscripciones,11,5& &values=225,206,237,230,243,278,257,263,311,247,307,216,247,247,290,304,301,394,313,276,238,223,293,155,85,326,226,42& &values_2=0,0,0,0,222,305,298,301,300,286,336,275,261,257,295,320,309,318,90,131,100,82,80,57,51,68,94,23& &x_labels=20080201,20080202,20080203,20080204,20080205,20080206,20080207,20080208,20080209,20080210,20080211,20080212,20080213,20080214,20080215,20080216,20080217,20080218,20080219,20080220,20080221,20080222,20080223,20080224,20080225,20080226,20080227,20080228& &y_min=0& &y_max=394&" end end |
The result: