Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
XamOlapPieChart item resize
posted

Hello, I'm using pie chart to display OLAP data. I would like to utilize all space given to this control. At the beginning there is one chart which I would like the chart to be as large as it can and when drilling down, the more charts I have the smaller they will be. Currently I am able to set up ItemHeight and ItemWidth statically, is it possible to adjust size based on chart count, eg. by specifying MinHeight and MaxHeight? 

Best regards,

Jan

Parents
  • 138253
    Offline posted

    Hello Jan,

     

    Thank you for your post. I have been looking into it and I created a sample project for you showing how you can achieve the functionality you want. Basically I handled the FlatDataSource’s ResultChanged and the XamOlapPieChart’s SizeChanged events, where I call a method in which you should set the XamOlapPieChart’s ItemHeight and ItemWidth Properties. I added variables for the Window’s Height and Width and XamPieChart’s Items count, which you can use in order to calculate the measures that will best suit your requirement. Please let me know if need further clarifications on this matter.

     

    Looking forward for your reply.

    XamOlapPieChartItemsSize.zip
Reply Children