We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Embedded Chart Width

Hello,

how can i change the width of my embedded chart?

If i use the property width, visualstudio shows an error: width is not unique, width gets applies in IShape and IChart.

I would like to free position my embedded chart in the worksheet.

Regards
Ralf

5 Replies

MW Melba Winshia Syncfusion Team July 20, 2007 09:38 AM UTC

Hi Ralf,

Thank you for your interest in Essential XlsIO.

You can change the width of the chart by setting the property IChartShape.RightColumn.

[C#]

//Embedded chart position.
chart.RightColumn = 25;

http://websamples.syncfusion.com/samples/XlsIO.Windows/F64376/main.htm

Please let me know if you have any other questions.

Thanks,
Melba



RA Ralf Anacker July 20, 2007 11:04 AM UTC

Hello Melba,

thank you for your answer. But this is not this what i need. I don't like use then columns to anchor my chart, the position should be free.

Regards
Ralf


RR Ramya R Syncfusion Team July 24, 2007 01:50 PM UTC

Hi Ralf,

Thank you for the update.

Currently we do not have support to place the Chart in any position as desired.

Thanks for suggesting this valuable feature of "Support to place the Chart generated in xls file in any position" to enhance our product. We have logged it as a feature request and notified our development team. We will implement this feature in our forthcoming new version releases or service pack releases. We usually have a timeframe of at least three months between releases. The feature implementation would also greatly depend on the factors like product design, code compatibility and complexity. We will get back to you once the feature is implemented.

Please let me know if you have any queries.

Thanks & Regards,
Ramya.


AN Anonymous July 25, 2007 08:30 AM UTC

I can't see any problem with it.
IChartShape is derived from IShape. And IShape has Top, Left, Height, Width read/write properties. So something like this should work
IChartShape chart = sheet.Charts[ 0 ];
IShape chartShape = ( IShape )chart;
chartShape.Top = 100;
chartShape.Left = 100;
chartShape.Width = 100;
chartShape.Height = 100;
And your chart should be moved to those coordinates (in pixels)


MW Melba Winshia Syncfusion Team July 26, 2007 12:18 PM UTC

Hi Ami,

Thank you for the update.

Thanks,
Melba

Loader.
Live Chat Icon For mobile
Up arrow icon