Support bar chart display

Created on 25 February 2023, almost 2 years ago
Updated 2 August 2024, 6 months ago

Problem/Motivation

I use this module on one of my sites to generate HTML tables based on a CSV file field and it works great! I now have a requirement to add a bar chart display for a CSV file field. I thought this would be a good feature request for this module, to provide a new field formatter for bar charts based on Chart.js.

Steps to reproduce

N/A

Proposed resolution

Add a new field formatter to display bar charts based on the CSV file.

Remaining tasks

  • Instead of an array of colors, make a function/method that will generate color codes based on the row number.
  • Support other types of charts (line, pie, etc...)?
Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada smulvih2 Canada 🍁

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @smulvih2
  • Status changed to Needs review almost 2 years ago
  • 🇨🇦Canada smulvih2 Canada 🍁

    The patch attached introduces a new field formatter that allows users to display CSV data in a bar chart. There are two chart types; horizontal bar chart and vertical bar chart.

    Horizontal bar chart:

    Vertical bar chart:

    There is also an option to choose which axes the labels are generated from, either the first row or the first column. This allows the user to change how the data is plotted.

    Horizontal bar chart 2:

    Vertical bar chart 2:

  • Status changed to Closed: outdated 6 months ago
Production build 0.71.5 2024