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.
Unfortunately, activation email could not send to your email. Please try again.

DataVisualization.ChartPropertiesBuilder

Thread ID:

Created:

Updated:

Platform:

Replies:

121185 Nov 17,2015 04:12 PM Nov 17,2015 11:17 PM ASP.NET MVC 1
loading
Tags: Chart
Thomas McShane
Asked On November 17, 2015 04:12 PM

Can you please tell me what I am missing. 

 

I keep getting this Compiler Error Message: CS1061: 'Syncfusion.JavaScript.DataVisualization.ChartPropertiesBuilder' does not contain a definition for 'LabelPosition' and no extension method 'LabelPosition' accepting a first argument of type 'Syncfusion.JavaScript.DataVisualization.ChartPropertiesBuilder' could be found (are you missing a using directive or an assembly reference?)
 

on Line 14: .LabelPosition(ChartLabelPosition.OutsideExtended)

 

<div>

 

@(Html.EJ().Chart("container")

.CommonSeriesOptions(options => options.Type(SeriesType.Pie).Marker(marker => marker.DataLabel(label => label.Font(font => font.Color("black").Size("16px").FontFamily("arial")))

.Visible(true)))

.LabelPosition(ChartLabelPosition.OutsideExtended)

 

 

 

.Series(sr =>

{

sr.Points(pt =>

{

pt.X("Labour").Y(28).Text("Labour 28%").Add();

pt.X("Legal").Y(10).Text("Legal, 10%").Add();

pt.X("Production").Y(20).Text("Production, 20%").Add();

pt.X("License").Y(15).Text("License, 15%").Add();

pt.X("Facilities").Y(23).Text("Facilites, 23%").Add();

pt.X("Taxes").Y(17).Text("Taxes, 17%").Add();

pt.X("Insurance").Y(12).Text("Insurance, 12%").Add();

});

}))

</div>

thanks


Sanjith Kesavan [Syncfusion]
Replied On November 17, 2015 11:17 PM

Hi Thomas McShane,

Thanks for contacting Syncfusion support. We have analyzed your code example. We can able to reproduce exact problem while using your code in our sample. LabelPosition is the marker property. But in your code example you have given that outside of the marker. To avoid this problem, please follow the below code example.

[CSHTML]


In the above code we have used LabelPosition property inside the marker. Now the chart is rendering fine. Please find the below screenshot.



We have prepared the sample as per your requirement. Please find the sample from below location.
Sample Link: http://www.syncfusion.com/downloads/support/forum/121185/ze/MVCsample-82302895
Please let us know if you have any concern.

Regards,
Sanjith K.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;