Tooltip change color

Dear All
I need to change the background color for the tooltip and the inside font
please help me
thanks

tooltipOptions: {
formatTooltipX: (d) => (d).toUpperCase(),
formatTooltipY: (d) => d
}

@msiam You can chnage it using css I think like…

.graph-svg-tip, .graph-svg-tip > .svg-pointer{
    background: #fff;
}
.graph-svg-tip > .title, .graph-svg-tip > .title > strong {
    color: #000;
}

how i can implement this code

@msiam It depends where is the chart. If it’s in a report and there is a JavaScript file, then you can modify the colors using JavaScript…

yes, its a page in JS file

In that case, you can do that using js…

frappe.dom.set_style(`
    .graph-svg-tip, .graph-svg-tip > .svg-pointer{
        background: #fff;
    }
    .graph-svg-tip > .title, .graph-svg-tip > .title > strong {
        color: #000;
    }
`);