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

Horizontal stacked barchart not display third color #18

Closed
wmartey2012 opened this issue Jun 5, 2020 · 4 comments
Closed

Horizontal stacked barchart not display third color #18

wmartey2012 opened this issue Jun 5, 2020 · 4 comments

Comments

@wmartey2012
Copy link

Hello,
The stacked horizontal bar chart does not display the third color when you have more than two colors.
Kindly help to address it
2020-06-051

.

Thanks

@pierresh
Copy link
Owner

pierresh commented Jun 5, 2020

Hello,

Thanks for your message and sorry for this. Could you please give me your code and dataset? So that I could reproduce easily your chart, thanks.

@wmartey2012
Copy link
Author

Morris.Bar({
barSizeRatio: 0.1,
element: 'month_year_container',
data: [{"y": "WMartey", "a": 5, "b": 30, "c": 4}],
xkey: 'y',
ykeys: ['a', 'b', 'c'],
labels: ['insert', 'update', 'delete'],
lineColors: ['#ff6c60', '#1e88e5', '#7A92A3'],
lineWidth: '3px',
resize: true,
redraw: true,
stacked: true,
horizontal:true,
barColors: ['#5CB85C', '#f0ad4e', '#A02529']
})

@pierresh
Copy link
Owner

pierresh commented Jun 5, 2020

Hello,

Thanks for your feedback, I just committed a fix, please have a check.

@wmartey2012
Copy link
Author

Excellent, it worked

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

No branches or pull requests

2 participants