I used Highcharts to display multiple series, but only two lines are visible. For the other series, only the dots appear when hovering over them. After researching the issue online, I discovered it might be caused by null values in some series, and the connectNulls option needs to be set to true. However, I couldn't find a way to configure this option in the chart settings.
Thank you for your assistance and for this excellent module!

CommentFileSizeAuthor
highcharts issu.png15.41 KBlakhal

Issue fork charts-3495072

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lakhal created an issue. See original summary.

lakhal’s picture

Issue summary: View changes
andileco’s picture

Title: Hieghcharts multiples series doesn't display all lines » Highcharts multiples series doesn't display all lines
Issue summary: View changes

andileco’s picture

@lakhal the tests are broken in the attached patch, but the functionality should work. You'll need to:

  1. go to "/admin/config/content/charts"
  2. click "Highcharts settings"
  3. check the "Connect nulls" form element
  4. save

Please let me know if this helps!

andileco’s picture

Category: Bug report » Feature request
Priority: Major » Normal
lakhal’s picture

Thank you, @andileco!

It's working as expected, and all lines are now displayed.

I think it would be great if this could be applied to all other charting modules.

Thank you for this wonderful module

lakhal’s picture

Status: Active » Fixed
andileco’s picture

Status: Fixed » Needs work

Thank you for letting me know this solved your problem. Moving back to needs work (currently the tests fail) and making this more generic, as you are right: Billboard.js/C3.js Chart.js, and Google Charts all have an option for this.

lakhal’s picture

Thank you for your efforts,

I encountered another issue while using the module. I am unable to use tokens (in content display and views) to populate the values of the horizontal and vertical axis parameters, such as: Custom title, Value prefix, Value suffix, Value range.

andileco’s picture

Status: Needs work » Needs review

I updated this for all libraries. If you installed the previous patch, you will need to update your Highcharts settings and specific chart settings within the "Display" section.

nikathone’s picture

Status: Needs review » Needs work

  • andileco committed d5a9fb57 on 5.1.x
    Issue #3495072 by andileco, nikathone: Highcharts multiples series doesn...
andileco’s picture

Status: Needs work » Fixed
andileco’s picture

@lakhal - please put in a new feature request for your need for tokens. In Views, there is support for Twig tokens from the View itself, but not the tokens like [node:title].

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

lakhal’s picture

Thank you @andileco for yout support,
The twig tokens work for the title but not for other fields, I will open another new feature request for that.