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.
Syncfusion Feedback

new problem

Thread ID:

Created:

Updated:

Platform:

Replies:

97834 Jan 12,2011 03:46 PM UTC Jan 21,2011 10:21 AM UTC WPF 7
loading
Tags: Chart
shivinder singh
Asked On January 12, 2011 03:46 PM UTC

Initally i was customizing my labels with the following code chart1.Areas[0].PrimaryAxis.LabelsSource = DataSeries.GetLabelList();
chart1.Areas[0].PrimaryAxis.PositionPath = "Position";
chart1.Areas[0].PrimaryAxis.ContentPath = "AxisLabel";

in the above the label every 5th point was being shown and this worked succesfully. when i got the latest update( reference linked to the path 8.4.0.10\assemblies\4.0) from you guys and then the above code siezed to work. it now did not show the label for every 5th point. it now got the correct label but instead showed the labels consecutively. but only a certain number of labels.(if i had 100 data points. where i wanted to see every 5th label it showed the 1st 20 labels but incorrectly)

i then proceeded to link my reference to the original reference path (8.3.0.21\assemblies\3.5) and it worked correctly again. did you guys change the design totally ot is it just a bug.



Krishna Kumar [Syncfusion]
Replied On January 13, 2011 10:02 AM UTC

Hi shivinder singh,

Thank you for using Syncfusion Products.

Sorry for the incontinence caused. We are not able to reproduce your mentioned issue. If you need to display the labels in the X axis with every 5th position you can use the Interval property or you can use the DesiredIntervalCount property. The following code snippet shows how to customize the X axis labels.

C#:

Area1.PrimaryAxis.Interval = 5;
Area1.PrimaryAxis.DesiredIntervalsCount = 10;

And

Area1.PrimaryAxis.LabelsMode = ChartAxisLabelsMode.DataSource;
Area1.PrimaryAxis.IntersectAction = ChartLabelIntersectAction.MultipleRows;

The above code is used to display all the labels. If you display all the labels, the labels will overlap and that won’t be clear for avoiding that the MultipleRows property is used.

If the above solution does not resolve your issue, please update us a screen short to explain your problem. So that we can analyze more and update you the possible solution.

Let me know if you have any question.

Thanks,
Krishnakumar




shivinder singh
Replied On January 13, 2011 03:33 PM UTC

hey krishna,

i understand the system. the code/solution you are showing me is the one i am using it worked for me.
again here is my code

Area.PrimaryAxis.LabelsSource = DataSeries.GetLabelList();
Area.PrimaryAxis.LabelsMode = ChartAxisLabelsMode.DataSource;
Area.PrimaryAxis.PositionPath = "Position";
Area.PrimaryAxis.ContentPath = "AxisLabel";

where label list is about 20 long(the underlying list is 100 long ). and position is in increments of 5 and AxisLabel is my custom label

now like i told you it works for the old update where it will show the custom label in every 5th position . the exact same code does not work if i reference the latest syncfusion charts. you are saying it works for you
but i am telling you it works for me when i reference the old syncfusion but not when i access the new update. this extremely frustating for me. as i am unable to do my job due to this


shivinder singh
Replied On January 13, 2011 03:39 PM UTC

the difference comes in using the assemblies in 8.4.0.10(not working ) and assemblies in 8.3.021

do you want me to send screen shots of the difference??????


shivinder singh
Replied On January 18, 2011 04:43 PM UTC

can someone please help me with this


Saravanan A [Syncfusion]
Replied On January 20, 2011 01:04 PM UTC

Hi shivinder singh,

We are not able to reproduce your mentioned issues. Could you please send us a simple sample or screenshot which reproduce this issue? So that we can investigate more about this issue and provide you a possible solution.

Please let us know if you have any questions about this.

Thanks,
Saravanan.



shivinder singh
Replied On January 20, 2011 07:10 PM UTC

Hey,
three screen captures. MyStuff is the way i am seeing my code.

i also wrote a small program to show the differences. There was NO CHANGE IN THE CODE. just the different references.
the code is in the zip file but in case it doesnt take

i am putting the code in the text
xaml







c#
ObservableCollection coll = new ObservableCollection();
ObservableCollection ForLabels = new ObservableCollection();
public MainWindow()
{
InitializeComponent();
AddDataToSeries();
}
public void AddDataToSeries()
{
Random r1 = new Random();
for (int i = 0; i < 100; i++)
{
coll.Add(new Data() { X = i, Y = r1.Next(0, 100), ProductName =i.ToString() });
}
ForLabels.Add(new Data() { X = 0, Y = 3, ProductName = "Zero" });
ForLabels.Add(new Data() { X = 10, Y = 15, ProductName = "Ten" });
ForLabels.Add(new Data() { X = 20, Y = 20, ProductName = "Twenty" });
ForLabels.Add(new Data() { X = 30, Y = 3, ProductName = "Thirty" });
ForLabels.Add(new Data() { X = 40, Y = 3, ProductName = "Forty" });
ForLabels.Add(new Data() { X = 50, Y = 3, ProductName = "Fifty" });
ForLabels.Add(new Data() { X = 60, Y = 3, ProductName = "Sixty" });
ForLabels.Add(new Data() { X = 70, Y = 3, ProductName = "seventy" });
ForLabels.Add(new Data() { X = 80, Y = 3, ProductName = "Eighty" });
ForLabels.Add(new Data() { X = 90, Y = 3, ProductName = "Ninety" });
Series1.DataSource = coll;
Series1.BindingPathX = "X";
Series1.BindingPathsY = new string[] { "Y" };

chart1.Areas[0].PrimaryAxis.LabelsSource = ForLabels;
chart1.Areas[0].PrimaryAxis.PositionPath = "X";
chart1.Areas[0].PrimaryAxis.ContentPath = "ProductName";
}
}
public class Data
{
public double X { get; set; }
public double Y { get; set; }
public string ProductName { get; set; }
}



Labels_e6413be8.zip

Saravanan A [Syncfusion]
Replied On January 21, 2011 10:21 AM UTC

Hi Shivinder,

Sorry for the inconvenience caused. We are able to reproduce this issue. We really appreciate you to bringing this issue to our attention. Please create an incident for this issue in direct-trac. We will fix this issue and send you a custom patch once the issue has been fixed.

Please let us know if you have any questions.



Thanks,
Saravanan.



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.

Warning Icon 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.Close Icon

;