Skip to content

Add combination chart #137

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

JordanVoets
Copy link

Summary

Type of Change

  • 🚀 New chart type combination chart

Screenshot/Video

image

This screenshot uses the following JSON config for display purposes:

->setJSONConfig(
            [
                'xaxis.labels' => [
                    'hideOverlappingLabels' => false,
                    'rotate' => -25,
                    'rotateAlways' => true,
                    'minHeight' => 30,
                ],
                'yaxis.labels.formatter' => "function (value) {
                return value + ' " . __('utilities.electricity_unit') . "';
                }",
                'responsive' => [
                    [
                        'breakpoint' => 768,
                        'options' => [
                            'xaxis' => [
                                'labels' => [
                                    'rotate' => 0,
                                    'hideOverlappingLabels' => true,
                                ]
                            ]
                        ]
                    ]
                ],
                'tooltip.x' => [
                    'format' => 'MMM yyyy'
                ]
            ]
        );

@JordanVoets
Copy link
Author

Needed this for a project. I decided to contribute because I needed it anyways.
@asantibanez could you review this?

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

Successfully merging this pull request may close these issues.

1 participant