Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
Questions using Legends
posted

Hi there

I am using 12.1.20121.2054 of the UltraChart and am having troubles with my chart's legend. The chart is a composite chart made up of a ColumnChart and a Line chart

1/ I have assigned the Legend.Location = LegendLocation.Bottom but it still appears at the top right hand side of the chart. How can I affect this location?


            ultraChart1.Legend.DataAssociation = ChartTypeData.SplitData;
            // Add a Legend
            CompositeLegend chartLegend = new CompositeLegend();
            columnLayer.LegendItem = LegendItemType.Series;
            lineLayer.LegendItem = LegendItemType.Series;
            chartLegend.ChartLayers.Add(columnLayer);
            chartLegend.ChartLayers.Add(lineLayer);
            ultraChart1.CompositeChart.Legends.Add(chartLegend);
            this.ultraChart1.Legend.Location = LegendLocation.Bottom;

2/ You will notice under the X axis it has the term "Monthly".
    I do not want to display this value, in fact I want to hide that value, but if I set the Series.Label to string.Empty or modify the label
     the legend text is also affected. How can hide the series label but leave the legend label as :Monthly" ?
   

Regards

geoffhop