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

Added disable groups option to bar chart #585

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Niels-Be
Copy link

Simple new option for bar charts to prevent grouping. Using this bars will be plotted on top of each other. This is useful to compare e.g. histograms.

@Niels-Be Niels-Be closed this May 22, 2015
@Niels-Be
Copy link
Author

You can ignore the second commit because Pull Requests on single Commits do not work.

@Niels-Be Niels-Be reopened this May 22, 2015
@@ -277,7 +279,11 @@ class Morris.Bar extends Morris.Grid
# @private
hoverContentForRow: (index) ->
row = @data[index]
content = $("<div class='morris-hover-row-label'>").text(row.label)
if typeof @options.hoverLabelFormatter is 'function'
lable = @options.hoverLabelFormatter(row)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this variable not be named "label"?

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