%= render :partial => 'query_date', :locals => {:graph_id => 1, :update_div => 'database_usage_graph', :submit_action => 'database_usage_graph'} %> <%app_id = @app_id || 0 %> <%=render :partial => 'javascript_partial', :locals=> {:count => 'first', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "percentage_db_usage_graph"}%> <%# this section is for Ploting % of time spent in Data Base Layer by an application%>