From 2504bbef966824b0d6aa30dae05d324cbd0208c9 Mon Sep 17 00:00:00 2001 From: Robert Monfera Date: Tue, 30 Jun 2020 10:05:58 +0200 Subject: [PATCH] fix(partition): linked label on a larger than 180 degree slice (#726) This commit fix an issue arose when a single large (>180 degrees) slice is forced to have a linked label, eg. via a large or infinite `maximumSection` value (the default is, fill text) The root cause was that the preexisting calculation simply took the midpoint of the start and end angle, and if it was shorter to go along the other arc of the circle, then that's what it did. So it always resulted in an exact overlap with two slices where one was over 180 degrees and linked labels were forced. fix #699 --- ...all-sice-visually-looks-correct-1-snap.png | Bin 7765 -> 7772 bytes ...ry-small-visually-looks-correct-1-snap.png | Bin 6701 -> 6710 bytes ...t-labels-visually-looks-correct-1-snap.png | Bin 0 -> 14740 bytes .../layout/viewmodel/link_text_layout.ts | 2 +- .../sunburst/6_pie_chart_linked_labels.tsx | 49 ++++++++++++++++++ stories/sunburst/sunburst.stories.tsx | 1 + 6 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 integration/tests/__image_snapshots__/all-test-ts-baseline-visual-tests-for-all-stories-sunburst-with-linked-text-labels-visually-looks-correct-1-snap.png create mode 100644 stories/sunburst/6_pie_chart_linked_labels.tsx diff --git a/integration/tests/__image_snapshots__/all-test-ts-baseline-visual-tests-for-all-stories-sunburst-single-small-sice-visually-looks-correct-1-snap.png b/integration/tests/__image_snapshots__/all-test-ts-baseline-visual-tests-for-all-stories-sunburst-single-small-sice-visually-looks-correct-1-snap.png index 039cf7cfedf1bc4315375a18148581cede2eaa75..1193a5e0218671b740815447bf51c504d42c5ec1 100644 GIT binary patch literal 7772 zcmeHMXIN8NyA3)s%!q&}MWrbgLU-N$l_D#)1cqAArGN zf+p7utYENxOc;#M%J}pr>X>TAhCXjpZQa4)@{dr6d$=NHsG=NDy=~f$;Gi;*0g(wn>>N}TAz$mzb@K9ZlU^{eFV|h zLjAvuMkX;jeNczrc&#)@Dk~|*ap>ckpXnKoQOa$tAqMupcg$K}vu&heJL~yBLx#|hupa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5Zq!Ad^}Rt}ta@f-#APRD=57W9-lw2$G%NjlJ^S(^b diff --git a/integration/tests/__image_snapshots__/all-test-ts-baseline-visual-tests-for-all-stories-sunburst-with-linked-text-labels-visually-looks-correct-1-snap.png b/integration/tests/__image_snapshots__/all-test-ts-baseline-visual-tests-for-all-stories-sunburst-with-linked-text-labels-visually-looks-correct-1-snap.png new file mode 100644 index 0000000000000000000000000000000000000000..98f08019abe0fc944d98b7535e79ff9fd3856bb3 GIT binary patch literal 14740 zcmeHucT806+vb1@h=AZLQWQ{%3P=$U5$PbkNtdbu(xfvW9Z^83QU(O2NgcYIKw4~atF9_XPD)RTLZQeNQrXa@7H_q9>%i8dcOyOE+BTC{bSl%z}g=kds;nZ{6_reB` zaov*1USgVTjhVqAZS|z*R4}m#PSvb&N=}%BgdLd@uSX*qmT#1^qyzb7oP^W6DcQ%_ z1BBDnvqHPyZG^GPDMcw4va|fS7C<{#_X6d|1Wt5o+DU;T2zyks;g{&yk^5?dasJ9} zw8&8IKh54S})b^Z_dUse~enMSK_BXk5UN- zzYOcpypC~C?^f58qc|*aHi&n%-Nm)nGEyhy%2C?OXP9eP#dl~1oG|Tk29rkro%&-} zq7?Is#XJGefF?!>aDX!lT#b<9;Mi(ixosw-?7bhLJ0`~27iaPUy_7P9+rVWGa}^JB z%_m_h7hmjmT}VqG{Hx(n6Z%@dwORf?N`MGPFub0u*4DnsE;gAuQ7v+?Wm+zFoUXjs zsV|~9NxKnjzCf*XKLQg`apQqP{;zq<#H$Yi+FWSoMb}Y&?Nai@ejXgR1gIHoE!#8s z@(m0!!&choT+ck=E$obcx~%-!t2$gEDpbdj?|w!Lyo+&f=g~id>ZgN~#C=^AL?5K9 z5f|6C>1$?o3C2D$ipqcA+IoxraWws{HR;m<} z=4QiwOUB75l^rDynMVD|lYOrRU(Y)EEY&;3BaePht0#E{ZKRh7(Ru5)zoD=&V~{A8 zlPB(ej=A`uO?08JW-(-YKF-K2l6I1JS<}V`-21m_mL-MA3btk-_PAt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@<^yxh?Lmo!L( zQToaF95p~S*f;rC&FlMKnH!rb`S{^{wIPfZKJJ@%qUlN*g^{z-dm?X9Wd()6D-^AC ziaf9b=pcr^-Q>cf@XWw#wo|`)vR2w$c*k;Cf(XS++?FnWQq_H(?a7lR?1tvxo=h#` zZI!%n4kd6CdF{&=K277oi;Q+ld$$XB);Fz&!uc46*R`RSb7cGGIKUnT;ec!dx2!6c z^AA@9uW^W2w9UNx^ofp(*slqIDeBw{kxW=Tl(=P0F?e$zR)ukX@lflXJqPsIABiN3 zgbA&f>Q$uvU=50jB4cB_AM<`r{e{ea=&k%QAuWB4Izz3JZ$HHeQr?2~zFzmL+n8S4 zj*ZX>3Z&n7k^bFz{@d{ud$MZMANKW7>_3&p0fCqxi-vb*G36g=1FuOh`1(F;;Z?3Q z($KGxR%oTjC~>&S)|k2{BdwY>=SsKn!V9j`JJs2l{Us<+u82iYnucaM=|5untg??N zjgxXzibclnUkM}&!cqoZo2{R^e`UUpnGg~wm>T&tTS4>x|Bc)Kv%lku$DjAn-uvC; TIc^HZMkzc{l_`*V?EgOic*E-< literal 0 HcmV?d00001 diff --git a/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts b/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts index 446f704ddb..901969dfb5 100644 --- a/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts +++ b/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts @@ -98,7 +98,7 @@ export function linkTextLayout( return dist1 - dist2; }) .map((node: ShapeTreeNode) => { - const midAngle = trueBearingToStandardPositionAngle(meanAngle(node.x0, node.x1)); + const midAngle = trueBearingToStandardPositionAngle((node.x0 + node.x1) / 2); const north = midAngle < TAU / 2 ? 1 : -1; const rightSide = TAU / 4 < midAngle && midAngle < (3 * TAU) / 4 ? 0 : 1; const west = rightSide ? 1 : -1; diff --git a/stories/sunburst/6_pie_chart_linked_labels.tsx b/stories/sunburst/6_pie_chart_linked_labels.tsx new file mode 100644 index 0000000000..1ffa4c2276 --- /dev/null +++ b/stories/sunburst/6_pie_chart_linked_labels.tsx @@ -0,0 +1,49 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import React from 'react'; + +import { Chart, Datum, Partition, PartitionLayout } from '../../src'; +import { config } from '../../src/chart_types/partition_chart/layout/config/config'; +import { indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; + +export const Example = () => ( + + d.exportVal as number} + valueFormatter={(d: number) => `$${config.fillLabel.valueFormatter(Math.round(d))}`} + layers={[ + { + groupByRollup: (d: Datum) => d.sitc1, + // nodeLabel: (d: Datum) => d, + fillLabel: { textInvertible: true }, + shape: { + fillColor: indexInterpolatedFillColor(interpolatorCET2s), + }, + }, + ]} + config={{ partitionLayout: PartitionLayout.sunburst, linkLabel: { maximumSection: 10000 } }} + /> + +); diff --git a/stories/sunburst/sunburst.stories.tsx b/stories/sunburst/sunburst.stories.tsx index 6566a9586a..6719fff022 100644 --- a/stories/sunburst/sunburst.stories.tsx +++ b/stories/sunburst/sunburst.stories.tsx @@ -32,6 +32,7 @@ export { Example as valueFormattedWithCategoricalColorPalette } from './3_value_ export { Example as withFillLabels } from './4_fill_labels'; export { Example as donutChartWithFillLabels } from './5_donut'; export { Example as withDirectTextLabels } from './6_pie_chart_labels'; +export { Example as withLinkedTextLabels } from './6_pie_chart_linked_labels'; export { Example as someZeroValueSlice } from './7_zero_slice'; export { Example as sunburstWithTwoLayers } from './8_sunburst_two_layers'; export { Example as sunburstWithThreeLayers } from './9_sunburst_three_layers';