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 Custom Feature #24

Closed
Danny-Tran opened this issue Feb 20, 2020 · 5 comments
Closed

Tooltip Custom Feature #24

Danny-Tran opened this issue Feb 20, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@Danny-Tran
Copy link

Danny-Tran commented Feb 20, 2020

Hello I am trying to hide the legend for my graph, looks like it not working?
this is in the doc
image
this is what I have in my code
image
and this is what the nova-chartjs produce with legend attached
image

@Danny-Tran
Copy link
Author

Danny-Tran commented Feb 21, 2020

I upgrade to V0.1.2 and this solve the problem!
I also want to know if this feature working?
https://www.chartjs.org/docs/latest/configuration/tooltip.html?h=tool

@coroo
Copy link
Owner

coroo commented Feb 24, 2020

Hi @Danny-Tran thank you for your interest for this package. For tooltip, I will try to check it first and let you know again soon.

@coroo coroo added the enhancement New feature or request label Feb 24, 2020
@coroo coroo changed the title Hide Legend not working? Tooltip Custom Feature Feb 26, 2020
@daggemarren
Copy link

What's status for Tooltips? Can't figure out how to pass options or callbacks in current version

https://www.chartjs.org/docs/latest/configuration/tooltip.html?h=tooltips

@coroo
Copy link
Owner

coroo commented Apr 8, 2020

Hi @Danny-Tran & @daggemarren ,

Sorry for take so long for this feature.
Actually, this feature is on testing stage and If you can help me to check all the tooltips options list, it will be great.

For help me to test, you can check at
dev-issues-24:

composer require coroowicaksono/chart-js-integration "dev-issues-24"

Example Test:

(new StackedChart())
        ->title('Revenue')
        ->series(array([
            'barPercentage' => 0.5,
            'label' => 'Product #1',
            'backgroundColor' => '#ffcc5c',
            'data' => [30, 70, 80],
        ],[
            'barPercentage' => 0.5,
            'label' => 'Product #2',
            'backgroundColor' => '#ff6f69',
            'data' => [40, 62, 79],
        ]))
        ->options([
            'xaxis' => [
                'categories' => [ 'Jan', 'Feb', 'Mar' ]       
            ],
            'tooltips' => [
                'backgroundColor' => 'rgba(145, 145, 145, 0.8)',
            ]
        ])
        ->width('1/3'),

@coroo
Copy link
Owner

coroo commented Apr 14, 2020

This issue has been solved in v0.2.4.

Please see documentation in

@coroo coroo closed this as completed Apr 15, 2020
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

3 participants