-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change the heatmap colors #433
Comments
The short answer is that there is no way to do any of that without either changing the builtin heatmap Renderer, or making a copy of it that behaves the way you would like it to. If you wanted to submit a pull-request that added some options to the builtin heatmap renderer (via the |
Hi friends. I´m trying to change the heatmap cells color. I have to use a computer without Internet access and I can´t download Node or other software. Can I change the color without compile pivot.coffee? Thanks in advance. |
I didn't get to create a mechanism via the rendererOptions field, so what I can tell you that you can hardcode it in pivot.js in lines 1429, 1433, 1438, 1441 and 1442. Just change the "red" to "green" or "blue". I think that this is the only current option to do this. The heatmapper method wants the base color for the fields and it will calculate the HEX value for the color. So if you choose "red" the HEX field for the color will be #FFxxyy, for "green" it will be #xxFFyy and for "blue" it will be #xxyyFF That is how I fixed it, changed the string from "red" to "blue" and got cells with different shades of blue as background color. |
Ok thanks dejan-mladenovski. I will use this method. |
You can now specify a custom color scale function, see the example here: http://nicolas.kruchten.com/pivottable/examples/montreal_2014.html |
How to change heatmap image background color. Default show black. |
Is it possible to also change the blue color on the side of table? |
@yordanivanov92 please create new issues rather than commenting on old, closed ones :) To answer your question: you can override all styles using CSS. |
I'm really sorry Mr. Kruchten - I'm a bit new to asking questions in Github
and did not think at first that I should possible open a new thread. Thank
you for answer, I was looking for the same answer but for rpivotTable - I
didn't pay enough attention. I posted an issue there though :)
Nonetheless, thank you very much!
…On Wed, Apr 19, 2017 at 4:31 PM, Nicolas Kruchten ***@***.***> wrote:
@yordanivanov92 <https://github.com/yordanivanov92> please create new
issues rather than commenting on old, closed ones :)
To answer your question: you can override all styles using CSS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#433 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXLY2vwObsmQQE76FehIE6Dj9bcVlpEIks5rxhqrgaJpZM4HYk7H>
.
|
Hi @nicolaskruchten, this example you mentioned: http://nicolas.kruchten.com/pivottable/examples/montreal_2014.html shows for a linear scale. Is there any way to make the heatmap only color based on whether the value is positive or negative? If so, can you share the code to edit this function to achieve this? Many thanks!
|
Yep, you can make pretty much any kind of scale you want. Here's the documentation: https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md |
(also: please do not comment on closed issues, rather open a new one, so as to minimize the notifications sent to uninterested parties :) |
Hi Nicolas, I dont understand this example code. My dash is in .py where is the file I should i modify? |
I can't find this in the wiki or the user manual. Can you change the color of the heatmap cells to some other than red? I reviewed the source code and found out that you can choose between the red, green or blue, but the color red is hardcoded. I changed this to "blue" and it generated blue cells, but I want this to be configurable. Also, is there a way to tell the heatmapper to generate the blue from some kind of a range? For example, I want to give a value of something for my dark blue, and a value for my light blue, and the heatmap to generate shades of blue from that range.
Thanks
The text was updated successfully, but these errors were encountered: