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

Vertical markers aren't generated properly in line chart. #166

Closed
matmorel opened this issue Jan 6, 2017 · 0 comments · Fixed by #532
Closed

Vertical markers aren't generated properly in line chart. #166

matmorel opened this issue Jan 6, 2017 · 0 comments · Fixed by #532

Comments

@matmorel
Copy link

matmorel commented Jan 6, 2017

Here are two lines :

line_1 = [[0, 6], [11, 0]]
line_2 = [[0, 6], [1, 6], [2, 3], [3, 2], [4, 1], [5, 1], [6, 1], [7, 0]]

With those values, we are expecting 12 vertical markers, but it generate 8 markers.
Which is corresponding to the line_2 length.

In lib/gruff/line.rb we can see that @column_count is used to evaluate vertical markers amount :

if (@show_vertical_markers)
  (0..@column_count).each do |column|
    #trace markers
  end
end

In most cases, this is fine, but an option to override this with something like g.vertical_marker_count = 12 would be great.

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 a pull request may close this issue.

1 participant