You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Components/Graphs/BeeSwarmChart/index.tsx
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,8 @@ interface Props {
95
95
showNAColor?: boolean;
96
96
/** Toggle visibility of axis line for the main axis */
97
97
hideAxisLine?: boolean;
98
+
/** Defines if teh data point are locked exactly to their data value on the axis; if false, nodes are pulled toward their value but may drift when crowded */
99
+
strictValuePosition?: boolean;
98
100
/** Data points to highlight. Use the label value from data to highlight the data point */
99
101
highlightedDataPoints?: (string|number)[];
100
102
/** Defines the opacity of the non-highlighted data */
@@ -184,6 +186,7 @@ export function BeeSwarmChart(props: Props) {
184
186
dimmedOpacity =0.3,
185
187
customLayers =[],
186
188
hideAxisLine =false,
189
+
strictValuePosition =false,
187
190
}=props;
188
191
const[svgWidth,setSvgWidth]=useState(0);
189
192
const[svgHeight,setSvgHeight]=useState(0);
@@ -302,6 +305,7 @@ export function BeeSwarmChart(props: Props) {
Copy file name to clipboardExpand all lines: src/Components/Graphs/UnitChart/index.tsx
+98-46Lines changed: 98 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -61,13 +61,15 @@ interface Props {
61
61
// Graph Parameters
62
62
/** Size of the visualization */
63
63
size?: number;
64
-
/** No. of dots in a single row */
64
+
/** No. of grid icons in a single row */
65
65
gridSize?: number;
66
-
/** Spacing between 2 dots */
66
+
/** Defines the `d` attribute values for the SVG paths used as grid icons. Each path should be designed for a 24px × 24px viewBox. The order of paths determines the rendering order. If no paths are provided, a circle icon is used as the default. */
67
+
gridIcon?: string[];
68
+
/** Spacing between 2 grid icons */
67
69
unitPadding?: number;
68
-
/** Total no. of dot that are rendered in the chart */
70
+
/** Total no. of grid icon that are rendered in the chart */
69
71
totalNoOfDots?: number;
70
-
/** Toggle visibility of stroke for the unfilled dots */
72
+
/** Toggle visibility of stroke for the unfilled grid icons. */
71
73
showStrokeForWhiteDots?: boolean;
72
74
/** Toggles if the graph animates in when loaded. */
73
75
animate?: boolean|AnimateDataType;
@@ -123,6 +125,7 @@ export function UnitChart(props: Props) {
123
125
animate =false,
124
126
naLabel ='NA',
125
127
numberDisplayOptions,
128
+
gridIcon,
126
129
}=props;
127
130
constsvgRef=useRef(null);
128
131
constanimateValue=
@@ -141,15 +144,19 @@ export function UnitChart(props: Props) {
141
144
if(radius<=0){
142
145
console.error(
143
146
'The size of single unit is less than or equal to zero. Check values for ((dimension / gridSize) - (padding * 2)) / 2 is not less than or equal to 0.',
0 commit comments