Skip to content

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?

@JordanVoets
Copy link
Author

@asantibanez could you review this?

@asantibanez
Copy link
Owner

Hey @JordanVoets . Will review this soon. 👍

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.

2 participants