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: controls/htmlchart/troubleshooting/common-issues.md
+68-2Lines changed: 68 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ This help article lists the most common issues one can face when using the **Rad
17
17
1.[ XAxis labels are cluttered or overlapping. ](#xaxis-labels-are-cluttered-or-overlapping)
18
18
1.[ YAxis is not rescaled in a stock chart when changing the selection range. ](#yaxis-is-not-rescaled-in-a-stock-chart-when-changing-the-selection-range)
19
19
1.[ There is a redundant space between pie or donut chart and its legend. ](#there-is-a-redundant-space-between-pie-or-donut-chart-and-its-legend)
20
+
1.[ PlotArea is Shrunk by the Legend / PlotArea Dimensions Depend on the Legend Size.](#plotarea-is-shrunk-by-the-legend--plotarea-dimensions-depend-on-the-legend-size)
20
21
1.[ RadHtmlChart cannot be bound to a data source that has special characters in its field names. ](#radhtmlchart-cannot-be-bound-to-a-data-source-that-has-special-characters-in-its-field-names)
21
22
1.[Chart with display: none does not show itself](#chart-with-display-none-does-not-show-itself)
22
23
@@ -165,14 +166,79 @@ Solution: You can either offset the legend (see an example in the [ADD legend po
165
166
</telerik:RadHtmlChart>
166
167
````
167
168
169
+
## PlotArea is Shrunk by the Legend / PlotArea Dimensions Depend on the Legend Size
170
+
171
+
Generally, the size of the chart's elements including the PlotArea is dynamic, so that that all the elements can fit in with the chart's wrapper size. This, however, may leads to the following issues:
172
+
173
+
* Longer legend names will shrunk the PlotArea dimensions.
174
+
175
+
* Charts with similar dimensions and series but different legend size (e.g., the length of the legend items varies) will have different PlotArea size.
176
+
177
+
>caption Figure 2: Compare two charts with similar dimensions but different PlotArea size.
1. Set enough margin between the PlotArea and the legend via the [PlotArea.Appearance.TextStyle.Margin property]({%slug htmlchart/appearance-and-styling/labels-and-titles-font-settings%}#setting-text-styles-for-titles-and-labels).
184
+
185
+
1. Define a custom position for the legend via the [Legend.Appearance.Position, OffsetX and OffsetY properties]({%slug htmlchart/appearance-and-styling/legend-settings%}#position-and-alignment).
186
+
187
+
>caption Figure 3: Compare two charts with similar size of their PlotArea and wrapper element.
## RadHtmlChart Cannot be Bound to a Data Source that Has Special Characters in Its Field Names
169
235
170
236
Solution: Special characters in data source field names are escaped by surrounding the name with quotes and brackets (see **Example 3**).
171
237
172
238
>caution There are invalid characters in data source field names which cannot be escaped like "(", ")", "[", "]", ".", "/", "\". More information is available in the [Datacolumn name illegal character](https://social.msdn.microsoft.com/Forums/en-US/e2a88f75-da11-49db-8ec8-ef3007a66d28/datacolumn-name-illegal-character) forum post.
173
239
174
240
175
-
>caption Example 3: Escaping special characters in field names by surrounding the name with quotes and brackets.
241
+
>caption Example 4: Escaping special characters in field names by surrounding the name with quotes and brackets.
0 commit comments