Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

i have a question about Stacked100ColumnSeries and Lineseries.

Im creating a chart in silverlight, i have created a Stacked100ColumnSeries, but i also want to add a lineseries on top of that. i have tried adding it but the line series is not showing, and the Stacked100ColumnSeries get corrupt.

Is is possible to add a lineserie on top of a Stacked100ColumnSeries?

Thanks!
Posted

It is possible. I've tried it and it works (I dont have the code with me anymore though).
However the problem is your line will start from the center of a bar, which is not what you may want.
 
Share this answer
 
Comments
CrafterIt 17-May-11 4:56am    
how should i set the start location of the line?

i have pointed out my start and end datapoint on the x category, and it should be the same as the stacked bar
I found a solution, the IndependentValuePath for both the stacked100columnbar and line series needed to be in a String format i had int, then i could use the sortorder in my <toolkit:CategoryAxis Orientation="X" SortOrder="Ascending"> for the chart.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900