Код: Выделить всё
------
{-------.map((entry, index) => (
))}
{/* {-------.map((entry, index) => (
// CHANGED: Add logic to alternate background with left margin of 20px
))} */}
{/* */}
{/* */}
(
style={{
display: 'flex',
alignItems: 'center',
}}
>
{props.payload.map((entry: any) => (
{entry.id === 'bar' ? (
) : (
)}
{entry.value}
))}
)}
wrapperStyle={{
marginTop: '50px !important',
left: '50px',
position: 'absolute', // Position legend at the bottom
bottom: '-25px', // Place at the bottom of the container
right: '0px',
width: '100%',
height: '0px',
}}
/>
Можно ли это сделать, используя тот же компонент?Также пробует метод штриха, но он не может добраться до вершины графика, так что...?
Заранее спасибо.
Ожидается раздел фонового патча за каждой альтернативной полосой.
Подробнее здесь: https://stackoverflow.com/questions/792 ... hart-react
Мобильная версия