First off, I'm on version 2006 volume 3.
I originally had a simple line chart showing 2 lines (interest paid for interest rate A in blue and interest rate B in red) over several years. Dollars paid is the Y Axis and Year is the X Axis. Now, I need to show both principle and interest paid in a stacked chart (to show the total amount paid during each year). However, because I have 2 sets of rates (A and B), I'd like my 2 sets of stacks to be "paired" or "side-by-side" for each year.
It would be similar to the demo picture below, except there would only be 2 items (principle and interest) stacked for each bar, and only 2 bars (rates A and B) per year. I'm lost as to how to tell Infragistics exactly what to stack, and what to group together...if it's even possible. Can anyone shed light on the situation?
You can add a chart text appearance to your layer in order to display text on each column in that layer.
ColumnChartAppearance appearance = new ColumnChartAppearance();ChartTextAppearance chartText = new ChartTextAppearance();chartText.Row = -2;chartText.Column = -2;chartText.ItemFormatString = "<DATA_VALUE_ITEM>";appearance.ChartText.Add(chartText);layer.ChartTypeAppearance = appearance;
Thanks a lot Max. I made mistake in adding the layers to the legend. It works now.
I want to display the data values on the bars. Can you please help me on this?
If I were to add code to display the legend in my example in the previous posts it would look like this:
CompositeLegend legend = new CompositeLegend();legend.Bounds = new Rectangle(0, 90, 100, 10);legend.BoundsMeasureType = MeasureType.Percentage;legend.ChartLayers.Add(layer1);legend.ChartLayers.Add(layer2);ultraChart1.CompositeChart.Legends.Add(legend);
However, you have to make sure that the point labels (these are the labels that the legend will be showing) are different. Can you describe what problems you're experiencing with the legend?
Mark, I need to create a chart as below. Can you please help om this? I tried your code,
I have problem in displaying the Legend.
it's not possible in silverlight or wpf right now.
you can submit a feature request here: http://devcenter.infragistics.com/protected/requestfeature.aspx