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

Nivo Calander Axis Color not changing #2548

Closed
hilyas786786 opened this issue Mar 24, 2024 · 1 comment
Closed

Nivo Calander Axis Color not changing #2548

hilyas786786 opened this issue Mar 24, 2024 · 1 comment

Comments

@hilyas786786
Copy link

hilyas786786 commented Mar 24, 2024

`export default function HeatMap() {
const theme = {
axis: {
ticks: {
text: {
fill: '#f7f7f7f7', // Teal-900 for axis labels
},
},
legend: {
text: {
fill: '#f7f7f7f7',
},
},
},
tooltip: {
container: {
background: '#000',
color: '#38b2ac',
fontSize: '24px',
},
},
};

return (
<ResponsiveCalendar
data={data.filter((d) => d.day.startsWith(${currentYear}-))}
from={${currentYear}-01-01}
to={${currentYear}-12-31}
emptyColor="#E6FFFA"
colors={['#B2F5EA', '#81E6D9', '#4FD1C5', '#38B2AC']}
margin={{ top: 10, right: 40, bottom: 0, left: 40 }}
yearSpacing={40}
monthBorderColor="#000000"
dayBorderWidth={0}
dayBorderColor="#000000"
theme={theme}
legends={[
{
anchor: 'bottom-right',
direction: 'row',
translateY: 36,
itemCount: 4,
itemWidth: 42,
itemHeight: 36,
itemsSpacing: 14,
itemDirection: 'right-to-left',
},
]}
/>
);
}`

tooltip works, however axis dosen't change color to any value
It works in nivo/line in this map it wont work

@plouc
Copy link
Owner

plouc commented Mar 24, 2024

Please use the issue template, format code snippets and provide a codesandbox showcasing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants