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

Grid color issue with palette #3

Open
PhoenixFnX opened this issue Jul 29, 2014 · 0 comments
Open

Grid color issue with palette #3

PhoenixFnX opened this issue Jul 29, 2014 · 0 comments

Comments

@PhoenixFnX
Copy link

Hi,

Bug Description
If I do this :

        $palette->majorGridColor = '#000000FF';
        $palette->majorGridColor = '#000000aa';
        $graph->palette = $palette;

then my graph has a major grey grid on xAxis (vertical lines) and yAxis (horizontal lines).
image

But if I do this :

        $palette->majorGridColor = '#000000FF';
        $graph->palette = $palette;
        $palette->majorGridColor = '#000000aa';

then my graph only has a major grey grid on yAxis (horizontal lines) only.
image

Questions
To sumarize, is the palette still writable after setting it to the graph ?
If I want to apply a slight palette modification on a specific Axe, do I have to clone it ?

Usecase
Actually my objective was to get only the vertical grid. This is what I did :

            $palette2 = clone $graph->palette;
            $palette2->majorGridColor = '#000000aa';
            $graph->xAxis->setFromPalette($palette2);
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

No branches or pull requests

1 participant