2

I wish to generate a table and chart using an uploaded file (in Drupal 7).

I have uploaded the CSV file using the Feed Importer module and created a view (using the Views module). The view uses a display format of 'Chart', which is one of the possible views 'styles' you will have after enabling the Chart module.

My question: I don't know how to apply this to the uploaded CSV file.

3

You might want to use the Google Chart API module with Views integration. Here is a post that might help you - Add Charts To Your Drupal Site. It uses the Node Import module to create a node of statistics by way of importing a CSV file.

0

As a variation to creating charts using an "uploaded CSV file as input*" (as in your question), you could also "paste the data contained in such CSV file to create charts from it". That's something that's supported by the Easychart module (which already has an official release for both Drupal 7 and Drupal 8).

It is a graphical user interface, using the Highcharts javascript library as its charting engine (which may require a commercial license though). It claims to support every Highcharts chart-type and option.

Some more details about this module:

  • It defines a new content type (= Chart) used to add charts to your site.
  • It creates a chart widget that can be used in your own content types.
  • It integrates with the WYSIWYG module and provides an editor button to add charts to your WYSIWYG content (CKeditor and TinyMCE are supported).
  • It provides an intuitive interface to configure charts through the Easychart plugin.
  • It supports pasting of CSV data to create charts from it.
  • overheid.vlaanderen.be contains some real world examples of a Drupal website with some charts created with Easycharts (ignore the text on that page if you're not familiar with this language, just concentrate on the charts).

Resources:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.