Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow xaxis column to be set. Allow suppression of invalid data columns #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RikdeBoer
Copy link

Hi,
When somebody brought this plugin to my attention I immediately fell in live with it and simple had to write a Drupal module for it: http://drupal.org/project/highcharttable

When playing with it I felt two extensions would be really useful. They're both included with this single commit.

  1. Allow the data-graph-xaxis="#" attribute to be specified on the table to specify as the horizontal axis a column other than the first, i.e. 0.

  2. I found that Highchart does not cope very well when one of the series contains invalid data, like for instance a column of words, rather than numbers. Not only does that column not display, none of the valid numeric columns display either. The chart is blank. To avoid this this commit introduces datagraph-suppress-invalid-series="1" so that the chart will correctly display even when some of the columns contain invalid data.

I've marked my changes "RdB", but please feel free to remove those code comments.

I hope you agree with these changes and can create a new release soon.
Thanks again for all your work on this plugin.

Rik

@agallou
Copy link
Member

agallou commented Feb 15, 2015

Did you have an example of use case where the data has to be cleaned by highchartTable and not before, when generating the table ?

For the data-graph-xaxis attribute, could you open a separate pull request to discuss that with exemples on jsfiddle ?

@agallou
Copy link
Member

agallou commented Nov 1, 2015

@RikdeBoer any news on this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants