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

Tooltip Style Modification #46

Open
BuddhaCodes opened this issue Jul 19, 2023 · 0 comments
Open

Tooltip Style Modification #46

BuddhaCodes opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BuddhaCodes
Copy link

Hello there, the tooltip feature of the charts is amazing as it is, however it isn't flexible enough I think. I will like to request the options to being able to pass the BackgroundColor, Position and TitleColor

Something like this

Tooltip = new Tooltip()
{
    Callbacks = new Callbacks()
    {
        Label = (ctx) =>
        {
            return new[] { 
                $"DataIndex: {ctx.DataIndex}\nDatasetIndex: {ctx.DatasetIndex}" };
        },
        Title = (ctx) =>
        {
            return new[] { $"This is the value {ctx.Value}" };
        },
       BackgroundColor = new() { "#ffffff" }
    }
}
@erossini erossini self-assigned this Aug 1, 2023
@erossini erossini added the enhancement New feature or request label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants