Installed modules:
Charts 7.x-2.0-rc1
Google charts 7.x-2.0-rc1
Quant 7.x-1.0-beta4

Chart plugin
* Table charts

I get table with dates and data that is fine, but i dont get graph. I also get "warning msg".

Strict warning: Only variables should be passed by reference in quant_page() (line 44 of \quant\includes\pages.inc).

  // Theme and return the page
  return theme(
    'quant_page', 
    array(
      'form' => drupal_render(drupal_get_form('quant_time_form')),  <- line 44***
      'charts' => $charts
    )
  );
}

Comments

redcasso’s picture

I found this warning problem in .dev patch.

Strict warning: Only variables should be passed by reference in quant_page() (line 44 of \quant\includes\pages.inc).

// Get the time form
  $form = drupal_get_form('quant_time_form');
  
  // Theme and return the page
  $build = array(
    '#theme' => 'quant_page', 
    '#form' => drupal_render($form), 
    '#charts' => $charts,
    '#attached' => array(
      'css' => array(
        drupal_get_path('module', 'quant') . '/css/quant.css',
      ),
    ),
  );

  return $build;

I`m still searching how to get graph in configure site I can choose only:
Chart plugin
*Table charts
Output chart data in a plain-text table
Choose the plugin to render the charts in.

redcasso’s picture

Solved I miss Chart API ... https://www.drupal.org/project/chart

Works great!

redcasso’s picture

Status: Active » Closed (works as designed)