This is a migrated thread and some comments may be shown as answers.

Getting trouble in Pyramid3D Graph

2 Answers 97 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 25 Feb 2011, 06:34 PM
Hello Telerik Team,

In my WPF application I'm using your Pyramid3D Chart. In that I want to show couple of things, like
1) I have to show the respective count as a tooltip on the hover of respective areas (in my case they are High, Medium and Low). I'm trying to achieving this by using below code, but didn't get proper output.

2) Also I want to show the chart according to the LegendLabel (like high show come first and then Medium and then Low). But it is currently showing in a random order (i.e in my case Medium priority is showing at the top and then High is showing) . Just want to know how we can manage this behavior.

For more clarification, please find the screenshot of the same as an attachment.

void LoadGraphData(IEnumerable<CasePriorityCount> data)
        {
            SeriesMappingCollection mappingCollection = new SeriesMappingCollection();
            SeriesMapping mapping = new SeriesMapping();
  
            mapping.ItemMappings.Add(new ItemMapping("Count", DataPointMember.YValue));
            mapping.ItemMappings.Add(new ItemMapping("Priority", DataPointMember.LegendLabel));
            mapping.ItemMappings.Add(new ItemMapping("Count",DataPointMember.Tooltip));
  
            mapping.SeriesDefinition = new Pyramid3DSeriesDefinition();
  
            List<CaseByPriority> caseByPriorityData = new List<CaseByPriority>();
            foreach (CasePriorityCount caseByPriorityCount in data)
            {
                caseByPriorityData.Add(new CaseByPriority(caseByPriorityCount.Count, caseByPriorityCount.Priority));
            }
  
            mappingCollection.Add(mapping);
            ViewModel.SeriesMappingsData = mappingCollection;
            ViewModel.Data = caseByPriorityData;
        }

2 Answers, 1 is accepted

Sort by
0
Mukesh
Top achievements
Rank 1
answered on 25 Feb 2011, 07:49 PM
Any help ?
0
Vladimir Milev
Telerik team
answered on 02 Mar 2011, 10:28 AM
Hello Mukesh,

I'm not sure I completely understand your concerns so I created a sample app which accomplishes what I understand to be your desired scenario. Attaching the code with a screenshot as well:

Is this what you are trying to do? Am I missing something?

Regards,
Vladimir Milev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Chart
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Mukesh
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or