Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

HTMLChart Stacked Column Series with Items

$
0
0

Hello,

 

i have a project class with a list of employees assigned to each project

 

what i want to achieve here is that i want the stacked column chart to display names of projects on X axis for each series then add each resource of this project to the series as a series item with Y-Value of the total hours consumed by this employee on this project which is also a property coming from ProjectResource Class, i do it this way

 

Private Sub LoadAllProjects()

 dim Projects as new list(of Project)

 

Projects = GetAllProjects()

For Each nProject as Project in Projects

 Dim nSeries as new ColumnSeries

 Dim nAxisItem as new AxisItem

nAxisItem.labelstring = nProject.Name

nSeries.name = nProject.Name

For Each nEmp as Employee in Project.Resources

 dim nItem as new SeriesItem

nItem.Name = nEmp.Name

nitem.yvalue = nEmp.TotalUtilized

nSeries.Items.Add(nItem)

 

Next

RadHtmlChart1.PlotArea.Series.Add(nSeries)

Next

End Sub

 

Using this the either all items get loaded into first series or they duplicate in each series, i have tried everything possible and its not working

 also the legend is display the project.names thats because im assigning Series.Name to Project.Name and i have to remove it but i need the legend to display the names of employees in each project

 

Help is really appreciated, thanks


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>