react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

DiscreteColorLegend orientation doesn't work

Open NehaAhujaa opened this issue 5 years ago • 2 comments

react-vis library version: ^1.11.7

"orientation" property doesn't seem to work.

<DiscreteColorLegend 
   className="donutChartLegends" 
   height={150} 
   width={300}
   colors={
['#C2EC91','#9013FE','#FE9F97','#E9730C','#1E7A27','#F4B400','#8B572A','#539AE6','#D0021B']}
   items={
[{title: 'Zamak', strokeWidth: 50},
            {title:'Elastomer', strokeWidth: 50},
            {title:'Electronic Cards', strokeWidth: 50},
            {title:'Steel', strokeWidth: 50},
            {title:'Stainless Steel', strokeWidth: 50},
            {title:'Cardboard', strokeWidth: 50},
            {title:'Paper', strokeWidth: 50},
            {title:'PC Polycarbonate', strokeWidth: 50},
            {title:'Aluminium', strokeWidth: 50}]
} 
orientation="horizontal" />;

'donutChartLegends' have below styling in styles.scss file:

.donutChartLegends {
  padding-left: 3.75rem;
}

NehaAhujaa avatar May 28 '19 16:05 NehaAhujaa

I am also seeing that the orientation property does not affect the positioning.

shane-au-wade avatar Jul 07 '20 23:07 shane-au-wade

Same problem

citizenfish avatar May 10 '22 10:05 citizenfish