-
Notifications
You must be signed in to change notification settings - Fork 78
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
Column: Custom color is not applying to legend #5761
Comments
Please use the template next time to get all information to us https://github.com/infor-design/enterprise/issues/new/choose which team are you on? To Help you out.. I can easily reproduce reproduce this issue.
|
@bveerabathini @tmcconechy @ericangeles var dataset = [{
data: [{
name: 'Automotive',
shortName: 'Auto',
abbrName: 'A',
value: 7,
color: '#8ED1C6'
}, {
name: 'Distribution',
shortName: 'Dist',
abbrName: 'D',
value: 10,
color: '#8ED1C6'
}, {
name: 'Equipment',
shortName: 'Equip',
abbrName: 'E',
value: 14,
color: '#8ED1C6'
}, {
name: 'Fashion',
shortName: 'Fash',
abbrName: 'F',
value: 10,
color: '#8ED1C6'
}],
name: 'Monthly Target',
color: '#8ED1C6' // <-- can add a custom color here for legend
}]; If not, can I suggest that the color change will depend on the legend color instead of all the data items' colors? Like if all of the columns will be the same color, legend included, maybe it would be simpler to have it follow the legend color? var dataset = [{
data: [{
name: 'Automotive',
shortName: 'Auto',
abbrName: 'A',
value: 7
}, {
name: 'Distribution',
shortName: 'Dist',
abbrName: 'D',
value: 10
}, {
name: 'Equipment',
shortName: 'Equip',
abbrName: 'E',
value: 14
}, {
name: 'Fashion',
shortName: 'Fash',
abbrName: 'F',
value: 10
}],
name: 'Monthly Target',
color: '#8ED1C6'
}]; |
@yohannahbautista , |
@yohannahbautista I think that:
|
@tmcconechy @ericangeles @bveerabathini The first option is what's already in column chart. There isn't any implementation for the second option, that was just my suggestion. If you assign different colors to each bar, currently the legend will go with the default color unless you also assign a legend color Should I still continue with changing the legend color or are the existing settings okay? If so, should this include the column group chart as well? |
I think this looks fine to me. I may have misunderstood how it was currently working. As long as you can set the colors and the legend matches in some way. It should be good |
@tmcconechy do we need to fix anything here? If none, I guess we can already close this ticket. |
@ericangeles can we just make an example like in the original issue showing how to make a bunch of orange bars with the legend also showing orange? If we can do it by tweaking the data then thats good enough for me. |
This has been QA tested and passed on v4.59.0-dev. https://main-enterprise.demo.design.infor.com/components/column/example-legend-colors.html Moving this ticket to Done. Thanks! |
Custom color is not applying to legend of Column chart.
Have set like below, It is applying only to columns/bars of chart but not to Legend.
Expected behavior
Custom color should reflect in both column/bars and legend.
Version
Platform
The text was updated successfully, but these errors were encountered: