Open bernardolk opened 4 years ago
I think this is a bug in library. Because group names does not work correctly. I try to set custom names, but see only default0
, default1
....
const groups = [
{id: 1, content: 'Group #1'},
{id: 2, content: 'Group #2'}
];
But in legend I see - default1
, default2
.
Any solution for fix this and render correct group names?
any solution for this issue?
I think this is a bug in library. Because group names does not work correctly. I try to set custom names, but see only
default0
,default1
....const groups = [ {id: 1, content: 'Group #1'}, {id: 2, content: 'Group #2'} ];
But in legend I see -
default1
,default2
.Any solution for fix this and render correct group names?
I found a work around. use string instead of integer as "id"
const groups = [
{id: 'mean', content: 'Ø Mean'},
];
items.push( {x: dt, y: mean , group: 'mean'} );
In legend Ø Mean is displayed.
@DrSnuggles thanks so much, i didn't know about this, you save me, one more time, thanks.
Don't give a number to id, give a string and have the same string for the content it should work const groups = [ {id: 'string', content: 'string'}, ];
items.push( {x: dt, y: mean , group: 'string'} );
Hello!
I need to be able to draw two (or more) graphs on top of each other. By looking at the docs, i found an example that seems to show a bar graph and a line graph being assigned to different groups. I hoped the could would display a bar graph for the second group, but it does not! Example code (as is):
Also, every plot displays "ungrouped" in the legend box. This may not being an issue and i may just be misusing the library, but since this is an official example excerpt, i am lost as to how to make it work.
Any thoughts? Thanks a lot.