I want to fix the size of the graph and the size of the legend.

hello ! 

I want to fix the size of the graph and the size of the legend. 

However, the size of the legend depends on the number of characters in the legend.

For example, image

I also want to omit or line wrap characters that exceed the size of the legend.

Please tell me how to solve these problems.


Attachment: file_b01afe32.zip

4 Replies 1 reply marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team November 20, 2020 03:37 PM UTC

Hi Taichi, 
  
Greetings from Syncfusion. We have analyzed your query with the provided information at our end and the requested scenario can be achieved with the help of the width and height properties of the Legend available in the chart. But, as there are some internally know issues in our chart source which we are currently working at our end, using width and height properties of the Legend for changing the size of the legend may not behave properly. We will include the fix for the known issues and the changes will be rolled out in our upcoming weekly patch release which is expected to be rolled by 1st December 2020. We will update you here once the release is rolled out along with the solution and we appreciate your patience until then. 
  
Regards, 
Sriram Kiran 



TS Taichi Sasaki November 20, 2020 04:21 PM UTC

Thanks for the answer!

When I tried the properties of width and height
width is not working if the legend position is to the right of the chart.
Also, height does not work if the legend position is at the bottom of the chart.

I hope they all work.


SK Sriram Kiran Senthilkumar Syncfusion Team November 23, 2020 11:02 AM UTC

Hi Taichi, 
  
Thanks for revert. We will also consider the reported scenario on bug fixing. As mentioned earlier, we will include the fix for the reported issues in our upcoming weekly patch release which is expected to be rolled by 1st December 2020. We will update you once the release is rolled out and we appreciate your patience until then. 
  
Regards, 
Sriram Kiran 



SK Sriram Kiran Senthilkumar Syncfusion Team December 2, 2020 02:25 AM UTC

Hi Taichi, 
  
Thanks for your patience. The reported issue regarding the width and height properties of the Legend is not working properly in the chart according to the provided values is now fixed and rolled out in our weekly patch release. To overcome the reported issue, kindly upgrade the chart widget package to the latest version below. 
 
Also, we have created a simple circular chart sample similar to the provided screenshot and in that sample, we have set the legend width as ‘10%’ so that the legend text exceeding the width will be clipped. We have also attached the sample below for your reference. 
  
Please check with the above-attached sample and revert us if you still have concerns. 
  
Regards, 
Sriram Kiran 


Marked as answer
Loader.
Up arrow icon