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

[BUG] Specifying Number array for gridLines.lineWidth causes grid lines to disappear #5668

Closed
druryuow opened this issue Aug 7, 2018 · 0 comments
Milestone

Comments

@druryuow
Copy link

druryuow commented Aug 7, 2018

Expected Behavior

Specifying a Number array for gridLines.lineWidth should result in the corresponding grid lines being drawn at the individually specified line widths.

Current Behavior

Specifying a Number array for gridLines.lineWidth results in grid lines not being drawn.

Possible Solution

Following line in Chart.Scale.draw might be part of the issue:

var axisWidth = me.options.gridLines.lineWidth;

Steps to Reproduce (for bugs)

https://jsfiddle.net/0v5gLtzp/2/

Context

I have a bar chart with 9 categories and these are subdivided into three 'parent' categories, with one category in the first parent category, the next four in the second parent category, and the next four in the third parent category. I would like to make the grid lines between the parent categories thicker than the grid lines between the sub-categories.

Environment

  • Chart.js version: 2.7.2
  • Browser name and version: Firefox 61.0.1, Chrome 68.0.3440.84
etimberg added a commit to etimberg/Chart.js that referenced this issue Oct 1, 2018
use the first item when determining the size of the axis area.

Resolves chartjs#5668
@simonbrunel simonbrunel added this to the Version 2.8 milestone Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants