On Mar 11, 2021, at 6:16 PM, ben palmer <bent...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/41404de3-f728-45d2-b77f-9dc45c6593acn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/F15E97D8-DBC0-4DE1-970A-4E43B87F8FF8%40woodhull.com.
On Mar 11, 2021, at 7:14 PM, ben palmer <bent...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXE3xdM078Uxgm1o%3D6zp88TuUp-X3Hb6F-J-NoDJuP57Zg%40mail.gmail.com.
On Mar 11, 2021, at 7:24 PM, Gordon Woodhull <gor...@woodhull.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/B34A4781-4D3B-49D3-8216-5678FC9BDFC4%40woodhull.com.
On Mar 11, 2021, at 7:42 PM, ben palmer <bent...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXHzz_pJuyZGZKJr9dEdwMdKw3Zwdu%2BOeDMXb%3DLtxW4UOw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/D9591B76-8A50-492E-9FF3-30B376DABD57%40woodhull.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXFM6CEY4SggTCqEe6g%2B2yUB_44rbYLAaoA0b%3DtVqtzXLw%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "dc-js user group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dc-js-user-group/Ui_D_SQG7UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/31ABB5BC-B8D1-45F5-A1E9-09954375F9A0%40woodhull.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXHrYK%3DaL51g6Lio0N5rK%2BMuvtMER832sybBvte5Gm6m2A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/C28CB1D8-C728-457F-B7A1-D98EDA21AF9C%40woodhull.com.
On Mar 16, 2021, at 8:35 PM, ben palmer <bent...@gmail.com> wrote:
Hi I have had a play, but I need a way to update the colour range based on filter, or set a hard change at when the value crosses zero. Problem is as you use filters displayed range can get quite small so all similar coloured, were I really want a hard change of colour at 0.(( see attached ))Full range
<Screen Shot 2021-03-17 at 11.10.06 am.png>Filtered
<Screen Shot 2021-03-17 at 11.11.01 am.png>
On Tue, Mar 16, 2021 at 2:45 AM ben palmer <bent...@gmail.com> wrote:
thank you, that works, I will investigate further.
On Tue, Mar 16, 2021 at 2:16 AM Gordon Woodhull <gor...@woodhull.com> wrote:
Sure. That sounds like a diverging scale, but there are many options in d3-scale so it's worth exploring.Using the previous example, with white for the zero point in the middle:
.colorAccessor(({value: {value2}}) => value2).colors(d3.scaleDiverging([-10,0,10], ['red','white','green'], d3.interpolateSpectral))
<PastedGraphic-1.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXFe1Y5L4M05FPvHGmkCM3YVUM7xWGDxBBnfzX_pGkkN9g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/A6DF8B86-A07D-4185-919E-A2044646A046%40woodhull.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/CAOD0tXE3OrVs2ByL-J1-MpmZ-dRggZON2OXKe3UvE4f%3DEBg8BA%40mail.gmail.com.